2013-06-06 18:31:21 +00:00
|
|
|
#version 300 es
|
|
|
|
|
2013-06-19 05:41:25 +00:00
|
|
|
precision mediump float;
|
|
|
|
|
2013-06-06 18:31:21 +00:00
|
|
|
struct S {
|
|
|
|
vec4 u;
|
|
|
|
uvec4 v;
|
2013-06-19 05:41:25 +00:00
|
|
|
lowp isampler3D sampler;
|
2013-06-06 18:31:21 +00:00
|
|
|
vec3 w;
|
|
|
|
struct T1 { // ERROR
|
|
|
|
int a;
|
|
|
|
} t;
|
|
|
|
};
|
|
|
|
|
|
|
|
uniform S s;
|
|
|
|
|
|
|
|
uniform fooBlock {
|
|
|
|
uvec4 bv;
|
2014-01-07 17:44:41 +00:00
|
|
|
uniform mat2 bm2;
|
2013-06-19 05:41:25 +00:00
|
|
|
lowp isampler2D sampler; // ERROR
|
2013-06-06 18:31:21 +00:00
|
|
|
struct T2 { // ERROR
|
|
|
|
int a;
|
|
|
|
} t;
|
|
|
|
S fbs;
|
|
|
|
};
|
|
|
|
|
|
|
|
uniform barBlock {
|
|
|
|
uvec4 nbv;
|
|
|
|
int ni;
|
|
|
|
} inst;
|
|
|
|
|
|
|
|
uniform barBlockArray {
|
|
|
|
uvec4 nbv;
|
|
|
|
int ni;
|
|
|
|
} insts[4];
|
|
|
|
|
2013-06-24 17:26:56 +00:00
|
|
|
uniform unreferenced {
|
|
|
|
float f;
|
|
|
|
uint u;
|
|
|
|
};
|
|
|
|
|
2013-06-06 18:31:21 +00:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
texture(s.sampler, vec3(inst.ni, bv.y, insts[2].nbv.z));
|
2013-06-19 05:41:25 +00:00
|
|
|
insts[s.v.x]; // ERROR
|
2013-06-06 18:31:21 +00:00
|
|
|
}
|