glslang icon indicating copy to clipboard operation
glslang copied to clipboard

gl_WorkGroupSize declaration issue.

Open ZhiqianXia opened this issue 3 years ago • 3 comments

Hi , The glslang should report the error about :

It is a compile-time error to use gl_WorkGroupSize in a shader that does not declare a fixed workgroup size, or before that shader has declared a fixed workgroup size, using local_size_x, local_size_y, and local_size_z.

And i noticed that the https://github.com/KhronosGroup/glslang/issues/2479 and https://github.com/KhronosGroup/glslang/pull/2549 had fixed the issue for gl_WorkGroupSize , but that doesn't works for each conponent of gl_WorkGroupSize. Thanks for any help this issue.

shader:

#version 310 es
layout(std430) buffer Output {
  uint g_output;
};
void main() {
  g_output = gl_WorkGroupSize.x;
}
``

ZhiqianXia avatar Apr 28 '21 08:04 ZhiqianXia

ping @jeremy-lunarg .

ZhiqianXia avatar May 11 '21 01:05 ZhiqianXia

This is next in my queue, but will be a little while until I can get to it.

jeremy-lunarg avatar May 11 '21 14:05 jeremy-lunarg

@jeremy-lunarg thank you.

ZhiqianXia avatar May 12 '21 01:05 ZhiqianXia