Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl/comp/access-chains.comp

raw
1 static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
2
3 RWByteAddressBuffer wo : register(u1);
4 ByteAddressBuffer ro : register(t0);
5
6 static uint3 gl_GlobalInvocationID;
7 struct SPIRV_Cross_Input
8 {
9 uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
10 };
11
12 void comp_main()
13 {
14 wo.Store4(gl_GlobalInvocationID.x * 64 + 272, asuint(asfloat(ro.Load4(gl_GlobalInvocationID.x * 64 + 160))));
15 wo.Store4(gl_GlobalInvocationID.x * 16 + 480, asuint(asfloat(ro.Load4(gl_GlobalInvocationID.x * 16 + 480))));
16 }
17
18 [numthreads(1, 1, 1)]
19 void main(SPIRV_Cross_Input stage_input)
20 {
21 gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
22 comp_main();
23 }