Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders-msl/comp/struct-nested.comp

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct s1
7 {
8 int a;
9 };
10
11 struct s2
12 {
13 s1 b;
14 };
15
16 struct dstbuffer
17 {
18 s2 test[1];
19 };
20
21 constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
22
23 kernel void main0(device dstbuffer& _19 [[buffer(0)]])
24 {
25 _19.test[0].b.a = 0;
26 }
27