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