yum-mirror/slang

Making it easier to work with shaders

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

Yong HeSPIRV `Block` decoration fixes. (#4303)9a23a9aab

master
390 B18 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3// Check that we don't produce duplicate `Block` decorations.
4
5// CHECK: OpDecorate %RWStructuredBuffer Block
6// CHECK-NOT: OpDecorate %RWStructuredBuffer Block
7
8struct Particle {
9    float4 _m0;
10};
11
12[[vk::binding(0)]]
13RWStructuredBuffer<Particle> particleOut;
14
15[shader("fragment")]
16float4 main() : SV_TARGET {
17    return particleOut[0]._m0;
18}