This commit is contained in:
2025-03-19 12:48:21 +01:00
parent c2357f1a16
commit d18a38f928
9 changed files with 11 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ void DumbDebugCallBack(PulseDebugMessageSeverity severity, const char* message)
(void)message;
}
void TestVulkanSupport()
void TestBackendSupport()
{
#if defined(VULKAN_ENABLED)
if(!PulseSupportsBackend(PULSE_BACKEND_VULKAN, PULSE_SHADER_FORMAT_SPIRV_BIT))
@@ -17,7 +17,7 @@ void TestVulkanSupport()
if(!PulseSupportsBackend(PULSE_BACKEND_WEBGPU, PULSE_SHADER_FORMAT_WGSL_BIT))
#endif
{
TEST_MESSAGE("Vulkan is not supported");
TEST_MESSAGE("Backend is not supported");
exit(0);
}
}
@@ -65,7 +65,7 @@ void TestWrongBackendSetup()
void TestBackend()
{
RUN_TEST(TestVulkanSupport);
RUN_TEST(TestBackendSupport);
RUN_TEST(TestBackendSetup);
RUN_TEST(TestBackendAnySetup);
RUN_TEST(TestWrongBackendSetup);

View File

@@ -10,7 +10,7 @@ void DebugCallBack(PulseDebugMessageSeverity severity, const char* message)
{
if(errors_enabled && severity == PULSE_DEBUG_MESSAGE_SEVERITY_ERROR)
{
fprintf(stderr, "%s", message);
fprintf(stderr, "%s\n", message);
TEST_FAIL();
}
has_recieved_error = true;

View File

@@ -1,4 +1,4 @@
@group(0) @binding(0) var<storage, read_only> read_ssbo: array<u32>;
@group(0) @binding(0) var<storage, read> read_ssbo: array<u32>;
@group(0) @binding(1) var read_texture: texture_storage_2d<rgba8unorm, read>;
@compute @workgroup_size(16, 16, 1)

View File

@@ -1,4 +1,4 @@
@group(0) @binding(0) var<storage, read_only> read_ssbo: array<u32>;
@group(0) @binding(0) var<storage, read> read_ssbo: array<u32>;
@group(0) @binding(1) var read_texture: texture_storage_2d<rgba8unorm, read>;
@group(1) @binding(0) var<storage, read_write> write_ssbo: array<u32>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, read_write>;

View File

@@ -1,5 +1,5 @@
@group(1) @binding(0) var<storage, read_write> write_ssbo: array<u32>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, write>;
@group(1) @binding(1) var write_texture: texture_storage_2d<rgba8unorm, read_write>;
@compute @workgroup_size(16, 16, 1)
fn main(@builtin(global_invocation_id) grid: vec3<u32>)

View File

@@ -113,6 +113,7 @@ if is_plat("linux") then
add_requires("libbacktrace")
end
add_requires("unity_test")
-- add_requireconfs("unity_test", { configs = { cflags = "-D UNITY_OUTPUT_COLOR" }})
for name, module in table.orderpairs(tests) do
if module.option then