glslang-zig/glslang/Include
Chow 352e668a6d Add flags for local size values ( compute shader )
Purpose :

According to GLSL SPEC 4.6 ( 4.4.1.4 Compute Shader Inputs), for compute shader input qualifiers, we should declare such qualifiers with same values in the same shader (local_size_x, y and z).
"If such a layout qualifier is declared more than once in the same shader, all those declarations must set the same set of local work-group sizes and set them to the same values; otherwise a compile-time error results."

Why this fix:

If we manually set "local_size_x = 1" and directly following a declaration like "local_size_x = 2", this would not be detected. That is because currently we treat all the '1' as default value and could not restrictly detect whether those are default values.

Test case:
......
layout(local_size_x=1) in;
layout(local_size_x=2) in;
......

So I add test cases for this fix:
1. set local_size_y = 1 => success
2. set local_size_y = 2 => error
3. set local_size_y = 1 => success
2019-09-16 16:39:54 +08:00
..
arrays.h Implement GL_NV_cooperative_matrix 2019-02-25 23:42:59 -06:00
BaseTypes.h Web: Make switched methods all be non-virtual, more web-dependent code, 2019-08-20 23:21:56 -06:00
Common.h Add cstdlib include 2019-04-06 07:43:17 -04:00
ConstantUnion.h Web: Remove unnecessary GLSL numeric types, and some collateral. 2019-08-20 23:21:56 -06:00
InfoSink.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
InitializeGlobals.h Memory: Remove the need for per-thread tear down. 2017-11-13 01:52:11 -07:00
intermediate.h Web: Turn off includes, independent preprocessing path, fine tune all. 2019-08-20 23:21:56 -06:00
PoolAlloc.h Memory: Non-Functional: Rationalize and improve encapsulation of TLS usage. 2017-11-12 15:28:58 -07:00
ResourceLimits.h Interface: remove NV_EXTENSIONS from the resources header. 2018-09-26 03:02:13 -06:00
revision.h Bump revision. 2019-08-22 11:20:40 -06:00
revision.template Non-Functional: Whitespace, comments, replace accidentally deleted comment. 2017-01-06 11:24:14 -07:00
ShHandle.h Memory: Remove the need for per-thread tear down. 2017-11-13 01:52:11 -07:00
Types.h Add flags for local size values ( compute shader ) 2019-09-16 16:39:54 +08:00