| 1 |
static const uint3 gl_WorkGroupSize = uint3(8u, 4u, 2u); |
| 2 |
|
| 3 |
static uint3 gl_WorkGroupID; |
| 4 |
static uint3 gl_LocalInvocationID; |
| 5 |
static uint3 gl_GlobalInvocationID; |
| 6 |
static uint gl_LocalInvocationIndex; |
| 7 |
struct SPIRV_Cross_Input |
| 8 |
{ |
| 9 |
uint3 gl_WorkGroupID : SV_GroupID; |
| 10 |
uint3 gl_LocalInvocationID : SV_GroupThreadID; |
| 11 |
uint3 gl_GlobalInvocationID : SV_DispatchThreadID; |
| 12 |
uint gl_LocalInvocationIndex : SV_GroupIndex; |
| 13 |
}; |
| 14 |
|
| 15 |
void comp_main() |
| 16 |
{ |
| 17 |
uint3 local_id = gl_LocalInvocationID; |
| 18 |
uint3 global_id = gl_GlobalInvocationID; |
| 19 |
uint local_index = gl_LocalInvocationIndex; |
| 20 |
uint3 work_group_size = gl_WorkGroupSize; |
| 21 |
uint3 work_group_id = gl_WorkGroupID; |
| 22 |
} |
| 23 |
|
| 24 |
[numthreads(8, 4, 2)] |
| 25 |
void main(SPIRV_Cross_Input stage_input) |
| 26 |
{ |
| 27 |
gl_WorkGroupID = stage_input.gl_WorkGroupID; |
| 28 |
gl_LocalInvocationID = stage_input.gl_LocalInvocationID; |
| 29 |
gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID; |
| 30 |
gl_LocalInvocationIndex = stage_input.gl_LocalInvocationIndex; |
| 31 |
comp_main(); |
| 32 |
} |