blob: e9cc82291b806ba9af0bde3ba8c8db604e1b4e4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}
|