mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
yes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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>)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user