yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeAdd verification logic on push and specialization constants. (#5887)45af24672

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