diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/spirv/preserve-param.slang | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/spirv/preserve-param.slang b/tests/spirv/preserve-param.slang new file mode 100644 index 000000000..e9cc82291 --- /dev/null +++ b/tests/spirv/preserve-param.slang @@ -0,0 +1,19 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv -preserve-params -O0 + +// Test that -preserve-params option preserves shader paraemter declarations in the output spirv code. + +// CHECK-DAG: OpDecorate %{{.*}} Binding 0 + +// CHECK-DAG: OpDecorate %{{.*}} Binding 1 + +RWStructuredBuffer<float> buffer; + +struct TT +{ + Texture2D tex; +} +[numthreads(1, 1, 1)] +void f(ConstantBuffer<TT> t) +{ + return; +}
\ No newline at end of file |
