3 #extension GL_EXT_buffer_reference : enable
\r
5 layout(buffer_reference) buffer bufType1 { int x; };
\r
6 layout(buffer_reference) buffer bufType2 { int x; };
\r
7 layout(buffer_reference) uniform bufType3 { int x; };
\r
9 layout(buffer_reference) buffer;
\r
10 layout(buffer_reference) uniform;
\r
11 layout(buffer_reference) in;
\r
12 layout(buffer_reference) out;
\r
13 layout(buffer_reference) in badin { float x; } badin2;
\r
14 layout(buffer_reference) out badout { float x; } badout2;
\r
16 layout(buffer_reference) buffer bufType5;
\r
18 layout(buffer_reference) buffer bufType6 { int x[]; };
\r
20 layout(buffer_reference, std140, buffer_reference_align = 16) buffer bufType7;
\r
21 layout(buffer_reference) buffer bufType7 { int x[]; };
\r
36 b[2]; // ERROR, can't index due to unsized array
\r
40 bufType2 x1 = b4.b1;
\r
41 bufType2 x2 = bufType2(b4.b1);
\r
42 bufType2 x3 = bufType2(b4.b2);
\r
43 bufType2 x4 = bufType2(b4.b3);
\r
50 layout(buffer_reference) uniform bufType5 { int x; };
\r