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
..
2016-03-03 12:12:07 -05:00
2018-08-07 03:16:20 +09:00
2016-07-19 15:13:47 -06:00
2017-07-23 13:54:15 -06:00
2017-07-23 13:54:15 -06:00
2017-07-23 13:54:15 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-07-23 11:49:42 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:25:35 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2015-06-26 10:48:26 -06:00
2018-08-07 03:16:20 +09:00
2016-11-21 18:25:08 -07:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-08-23 14:33:31 -06:00
2017-06-26 17:52:22 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-03-03 18:19:03 -07:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2017-10-22 23:17:18 -06:00
2018-08-07 03:16:20 +09:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2019-01-07 12:36:13 -06:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-08-07 03:16:20 +09:00
2018-04-23 15:17:21 -06:00
2018-08-07 03:16:20 +09:00