3 layout(constant_id = 16) const int arraySize = 5;
\r
4 in vec4 ucol[arraySize];
\r
6 layout(constant_id = 17) const bool spBool = true;
\r
7 layout(constant_id = 18) const float spFloat = 3.14;
\r
8 layout(constant_id = 19) const double spDouble = 3.1415926535897932384626433832795;
\r
9 layout(constant_id = 22) const uint scale = 2;
\r
11 layout(constant_id = 24) gl_MaxImageUnits;
\r
16 // parameter should be considered same type as ucol
\r
17 void foo(vec4 p[arraySize]);
\r
25 color += float(spDouble / spFloat);
\r
30 layout(constant_id = 116) const int dupArraySize = 12;
\r
31 in vec4 dupUcol[dupArraySize];
\r
33 layout(constant_id = 117) const bool spDupBool = true;
\r
34 layout(constant_id = 118) const float spDupFloat = 3.14;
\r
35 layout(constant_id = 119) const double spDupDouble = 3.1415926535897932384626433832795;
\r
36 layout(constant_id = 122) const uint dupScale = 2;
\r
38 void foo(vec4 p[arraySize])
\r
40 color += dupUcol[2];
\r
41 size += dupArraySize;
\r
44 color += float(spDupDouble / spDupFloat);
\r
47 int builtin_spec_constant()
\r
49 int result = gl_MaxImageUnits;
\r