blob: 847c60b7d0e4041a9413335fb07ebfb4c21bc6b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Test that push constants should not occupy the default
// space.
//TEST:SIMPLE(filecheck=CHECK): -target spirv
// CHECK-NOT: OpDecorate {{.*}} DescriptorSet 1
struct Data {
StructuredBuffer<uint4> data;
RWStructuredBuffer<float> output;
};
ParameterBlock<Data> gData;
[numthreads(1,1,1)]
void taskMain(uniform uint a)
{
gData.output[0] = gData.data[0].x + a;
}
|