yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Qingyuan ZhengFix NS debug bool type in SSBO/UBO. (#4061)7c2a4d03

main
348 B27 linesraw
1#version 450
2
3layout (local_size_x = 32, local_size_y = 1) in;
4
5uniform UBO
6{
7	bool b;
8	bvec4 bv;
9	bool[4] ba;
10};
11
12buffer SSBO {
13	bool b;
14	bvec4 bv;
15	bool[4] ba;
16} ssbo;
17
18void main()
19{
20	if (gl_GlobalInvocationID.x == 0 && gl_GlobalInvocationID.y == 0) {
21		ssbo.b = b;
22		ssbo.bv = bv;
23		for (int i = 0; i < 4; ++i) {
24			ssbo.ba[i] = ba[i];
25		}
26	}
27}