2013-02-25 19:44:56 +00:00
|
|
|
#version 300 es
|
|
|
|
|
|
|
|
uniform sampler2D s2D;
|
2013-06-19 05:41:25 +00:00
|
|
|
uniform lowp sampler3D s3D;
|
2013-02-25 19:44:56 +00:00
|
|
|
uniform samplerCube sCube;
|
2013-06-19 05:41:25 +00:00
|
|
|
uniform lowp samplerCubeShadow sCubeShadow;
|
|
|
|
uniform lowp sampler2DShadow s2DShadow;
|
|
|
|
uniform lowp sampler2DArray s2DArray;
|
|
|
|
uniform lowp sampler2DArrayShadow s2DArrayShadow;
|
|
|
|
|
|
|
|
uniform lowp isampler2D is2D;
|
|
|
|
uniform lowp isampler3D is3D;
|
|
|
|
uniform lowp isamplerCube isCube;
|
|
|
|
uniform lowp isampler2DArray is2DArray;
|
|
|
|
|
|
|
|
uniform lowp usampler2D us2D;
|
|
|
|
uniform lowp usampler3D us3D;
|
|
|
|
uniform lowp usamplerCube usCube;
|
|
|
|
uniform lowp usampler2DArray us2DArray;
|
|
|
|
precision lowp float;
|
2013-02-25 19:44:56 +00:00
|
|
|
in float c1D;
|
|
|
|
in vec2 c2D;
|
|
|
|
in vec3 c3D;
|
2013-04-25 16:44:03 +00:00
|
|
|
smooth vec4 c4D;
|
2013-02-25 19:44:56 +00:00
|
|
|
|
2013-04-07 22:43:16 +00:00
|
|
|
flat in int ic1D;
|
|
|
|
flat in ivec2 ic2D;
|
|
|
|
flat in ivec3 ic3D;
|
|
|
|
flat in ivec4 ic4D;
|
2013-04-25 16:44:03 +00:00
|
|
|
noperspective in vec4 badv; // ERROR
|
2013-06-19 05:41:25 +00:00
|
|
|
in sampler2D bads; // ERROR
|
|
|
|
precision lowp uint; // ERROR
|
2013-04-07 22:43:16 +00:00
|
|
|
|
|
|
|
struct s {
|
|
|
|
int i;
|
2013-06-19 05:41:25 +00:00
|
|
|
sampler2D s;
|
2013-04-07 22:43:16 +00:00
|
|
|
};
|
|
|
|
|
2013-06-19 05:41:25 +00:00
|
|
|
out s badout; // ERROR
|
2013-02-25 19:44:56 +00:00
|
|
|
|
2013-06-21 19:43:44 +00:00
|
|
|
struct S2 {
|
|
|
|
vec3 c;
|
|
|
|
float f;
|
|
|
|
};
|
|
|
|
|
|
|
|
in S2 s2;
|
|
|
|
|
|
|
|
out vec3 sc;
|
|
|
|
out float sf;
|
|
|
|
|
2013-06-24 21:52:41 +00:00
|
|
|
uniform sampler2D arrayedSampler[5];
|
|
|
|
|
2013-02-25 19:44:56 +00:00
|
|
|
void main()
|
|
|
|
{
|
2013-02-26 19:48:48 +00:00
|
|
|
float f;
|
|
|
|
vec4 v;
|
|
|
|
v = texture(s2D, c2D);
|
|
|
|
v = textureProj(s3D, c4D);
|
|
|
|
v = textureLod(s2DArray, c3D, 1.2);
|
|
|
|
f = textureOffset(s2DShadow, c3D, ic2D, c1D);
|
|
|
|
v = texelFetch(s3D, ic3D, ic1D);
|
2013-06-24 21:52:41 +00:00
|
|
|
v = texelFetchOffset(arrayedSampler[2], ic2D, 4, ic2D);
|
2013-02-26 19:48:48 +00:00
|
|
|
f = textureLodOffset(s2DShadow, c3D, c1D, ic2D);
|
|
|
|
v = textureProjLodOffset(s2D, c3D, c1D, ic2D);
|
|
|
|
v = textureGrad(sCube, c3D, c3D, c3D);
|
|
|
|
f = textureGradOffset(s2DArrayShadow, c4D, c2D, c2D, ic2D);
|
|
|
|
v = textureProjGrad(s3D, c4D, c3D, c3D);
|
|
|
|
v = textureProjGradOffset(s2D, c3D, c2D, c2D, ic2D);
|
2013-06-24 21:52:41 +00:00
|
|
|
v = texture(arrayedSampler[ic1D], c2D); // ERROR
|
2013-02-26 19:48:48 +00:00
|
|
|
|
|
|
|
ivec4 iv;
|
|
|
|
iv = texture(is2D, c2D);
|
|
|
|
iv = textureProjOffset(is2D, c4D, ic2D);
|
|
|
|
iv = textureProjLod(is2D, c3D, c1D);
|
|
|
|
iv = textureProjGrad(is2D, c3D, c2D, c2D);
|
|
|
|
iv = texture(is3D, c3D, 4.2);
|
|
|
|
iv = textureLod(isCube, c3D, c1D);
|
|
|
|
iv = texelFetch(is2DArray, ic3D, ic1D);
|
|
|
|
|
|
|
|
iv.xy = textureSize(sCubeShadow, 2);
|
2013-04-25 16:44:03 +00:00
|
|
|
|
|
|
|
float precise;
|
|
|
|
double boo; // ERROR
|
|
|
|
dvec2 boo2; // ERROR
|
|
|
|
dvec3 boo3; // ERROR
|
|
|
|
dvec4 boo4; // ERROR
|
2013-06-07 18:54:19 +00:00
|
|
|
|
|
|
|
f += gl_FragCoord.y;
|
|
|
|
gl_FragDepth = f;
|
2013-06-21 19:43:44 +00:00
|
|
|
|
|
|
|
sc = s2.c;
|
|
|
|
sf = s2.f;
|
2013-06-24 22:40:19 +00:00
|
|
|
|
|
|
|
sinh(c1D) +
|
|
|
|
cosh(c1D) * tanh(c2D);
|
|
|
|
asinh(c4D) + acosh(c4D);
|
|
|
|
atanh(c3D);
|
2013-02-25 19:44:56 +00:00
|
|
|
}
|
2013-04-25 16:44:03 +00:00
|
|
|
|
|
|
|
float imageBuffer; // ERROR, reserved
|
|
|
|
float uimage2DRect; // ERROR, reserved
|