2 #extension GL_ARB_enhanced_layouts : require
\r
7 in float gl_ClipDistance[5];
\r
9 layout(row_major) uniform;
\r
11 uniform sampler2D samp2Da[3];
\r
13 layout(std140) uniform bn {
\r
14 layout(row_major) mat4 matra[4];
\r
15 layout(column_major) mat4 matca[4];
\r
16 layout(row_major) mat4 matr;
\r
17 layout(column_major) mat4 matc;
\r
18 layout(align=512, offset=1024) mat4 matrdef;
\r
21 uniform sampler2DRect sampR;
\r
22 uniform isamplerBuffer sampB;
\r
28 o.y = gl_ClipDistance[2];
\r
29 o.z = gl_ClipDistance[int(k)];
\r
30 o.w = float(textureSize(sampR) + textureSize(sampB)) / 100.0;
\r
34 // Test extra-function initializers
\r
36 float i1 = gl_FrontFacing ? -2.0 : 2.0;
\r
44 // test arrayed block
\r
45 layout(std140) uniform bi {
\r