blob: 9556a7cc0a3fff2a846a659a99733bec454a104a [file] [log] [blame]
John Kessenich0fbb0c42013-06-06 18:31:21 +00001#version 300 es
2
John Kessenich41a36bb2013-06-19 05:41:25 +00003precision mediump float;
4
John Kessenich0fbb0c42013-06-06 18:31:21 +00005struct S {
6 vec4 u;
7 uvec4 v;
John Kessenich41a36bb2013-06-19 05:41:25 +00008 lowp isampler3D sampler;
John Kessenich0fbb0c42013-06-06 18:31:21 +00009 vec3 w;
10 struct T1 { // ERROR
11 int a;
12 } t;
13};
14
15uniform S s;
16
17uniform fooBlock {
18 uvec4 bv;
John Kessenich5053a392014-01-07 17:44:41 +000019 uniform mat2 bm2;
John Kessenich41a36bb2013-06-19 05:41:25 +000020 lowp isampler2D sampler; // ERROR
John Kessenich0fbb0c42013-06-06 18:31:21 +000021 struct T2 { // ERROR
22 int a;
23 } t;
24 S fbs;
25};
26
27uniform barBlock {
28 uvec4 nbv;
29 int ni;
30} inst;
31
32uniform barBlockArray {
33 uvec4 nbv;
34 int ni;
35} insts[4];
36
John Kessenich06f84642013-06-24 17:26:56 +000037uniform unreferenced {
38 float f;
39 uint u;
40};
41
John Kessenich0fbb0c42013-06-06 18:31:21 +000042void main()
43{
44 texture(s.sampler, vec3(inst.ni, bv.y, insts[2].nbv.z));
John Kessenich41a36bb2013-06-19 05:41:25 +000045 insts[s.v.x]; // ERROR
John Kessenich0fbb0c42013-06-06 18:31:21 +000046}