diff options
| author | James Helferty (NVIDIA) <jhelferty@nvidia.com> | 2025-09-30 14:21:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-30 18:21:27 +0000 |
| commit | 8086adc90b69f3199767c0617e2c429ce6b27f67 (patch) | |
| tree | cbc54d5dbb3ad13329abc49f3aabf25ee199b7d6 /tests/metal/empty-struct-remove.slang | |
| parent | ee5adb87050ae7c0b96056a67dddc5d48174e695 (diff) | |
Enable metal tests (#8446)
Enables all tests/metal/ tests that can be easily enabled.
These tests were not originally designed as render tests; they are
generally being enabled for pipecleaning purposes, and will not be
rigorously testing the corresponding funcitonality.
Where they cannot be enabled as render tests, and a metallib test wasn't
already enabled, a metallib test was enabled instead (where possible).
Fixes #7892
Diffstat (limited to 'tests/metal/empty-struct-remove.slang')
| -rw-r--r-- | tests/metal/empty-struct-remove.slang | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/metal/empty-struct-remove.slang b/tests/metal/empty-struct-remove.slang index 5ac1ccb69..0ea926953 100644 --- a/tests/metal/empty-struct-remove.slang +++ b/tests/metal/empty-struct-remove.slang @@ -1,6 +1,7 @@ - //TEST:SIMPLE(filecheck=LIB):-target metallib -entry computeMain -stage compute //TEST:SIMPLE(filecheck=METAL):-target metal -entry computeMain -stage compute +//TEST(compute, metal):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-metal -compute -output-using-type +//TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -output-using-type // METAL-NOT: struct emptyStruct struct emptyStruct @@ -20,6 +21,7 @@ struct MyStruct emptyStruct e; } +//TEST_INPUT: set param = new MyStruct{ out ubuffer(data=[0]), 5, {}} ParameterBlock<MyStruct> param; // LIB: @computeMain @@ -29,5 +31,6 @@ void computeMain( uint tid: SV_DispatchThreadID, ) { + // BUF: 5 param.set(); } |
