1struct Data 2{ 3 float a; 4 float b; 5}; 6 7#ifndef SPIRV_CROSS_CONSTANT_ID_0 8#define SPIRV_CROSS_CONSTANT_ID_0 4.0f 9#endif 10static const float X = SPIRV_CROSS_CONSTANT_ID_0; 11 12static const uint3 gl_WorkGroupSize = uint3(2u, 1u, 1u); 13 14static const Data _21 = { 1.0f, 2.0f }; 15static const Data _24 = { 3.0f, 4.0f }; 16static const Data _25[2] = { { 1.0f, 2.0f }, { 3.0f, 4.0f } }; 17static const Data _30 = { 3.0f, 5.0f }; 18 19RWByteAddressBuffer _61 : register(u0); 20 21static uint3 gl_WorkGroupID; 22static uint3 gl_LocalInvocationID; 23static uint gl_LocalInvocationIndex; 24struct SPIRV_Cross_Input 25{ 26 uint3 gl_WorkGroupID : SV_GroupID; 27 uint3 gl_LocalInvocationID : SV_GroupThreadID; 28 uint gl_LocalInvocationIndex : SV_GroupIndex; 29}; 30 31void comp_main() 32{ 33 Data _28 = { X, 2.0f }; 34 Data _31[2] = { _28, _30 }; 35 Data data2[2] = _31; 36 if (gl_LocalInvocationIndex == 0u) 37 { 38 _61.Store(gl_WorkGroupID.x * 8 + 0, asuint(_25[gl_LocalInvocationID.x].a + data2[gl_LocalInvocationID.x].a)); 39 _61.Store(gl_WorkGroupID.x * 8 + 4, asuint(_25[gl_LocalInvocationID.x].b + data2[gl_LocalInvocationID.x].b)); 40 } 41} 42 43[numthreads(2, 1, 1)] 44void main(SPIRV_Cross_Input stage_input) 45{ 46 gl_WorkGroupID = stage_input.gl_WorkGroupID; 47 gl_LocalInvocationID = stage_input.gl_LocalInvocationID; 48 gl_LocalInvocationIndex = stage_input.gl_LocalInvocationIndex; 49 comp_main(); 50} 51