glslang/Test/spv.1.6.specConstant.comp
Greg Fischer 7a49192d23 Add support for spirv1.6
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
2021-12-16 15:01:42 -07:00

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);
}