Daniel Koch | 83170e3 | 2019-03-26 13:45:33 -0400 | [diff] [blame] | 1 | #version 320 es |
2 | #extension GL_KHR_shader_subgroup_basic: enable | ||||
3 | layout(isolines) in; | ||||
4 | layout(set = 0, binding = 0, std430) buffer Output | ||||
5 | { | ||||
6 | uvec4 result[]; | ||||
7 | }; | ||||
8 | |||||
9 | void main (void) | ||||
10 | { | ||||
11 | result[gl_PrimitiveID] = uvec4(gl_SubgroupSize, gl_SubgroupInvocationID, 0, 0); | ||||
12 | } |