mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
7a49192d23
Add command line support which enables the following behavior: - Remap discard Map discard to DemoteToHelperInvocation for HLSL shaders. Map to OpTerminateInvocation for GLSL shaders. - Decorate HelperInvocation with Volatile - Use localSizeId for execution mode WorkGroupSize is deprecated in spirv1.6 Also update known goods to SPIRV 1.6
19 lines
265 B
Plaintext
19 lines
265 B
Plaintext
#version 450
|
|
|
|
layout(local_size_x_id = 18, local_size_z_id = 19) in;
|
|
layout(local_size_x = 32, local_size_y = 32) in;
|
|
|
|
buffer bn {
|
|
uint a;
|
|
} bi;
|
|
|
|
void foo(uvec3 wgs)
|
|
{
|
|
bi.a = wgs.x * gl_WorkGroupSize.y * wgs.z;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
foo(gl_WorkGroupSize);
|
|
}
|