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
32 b[2]; // ERROR, can't index due to unsized array
\r
36 bufType2 x1 = b4.b1;
\r
37 bufType2 x2 = bufType2(b4.b1);
\r
38 bufType2 x3 = bufType2(b4.b2);
\r
39 bufType2 x4 = bufType2(b4.b3);
\r
46 layout(buffer_reference) uniform bufType5 { int x; };
\r