diff options
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(); } |
