blob: 5d073488c9008186e6e7a407c465c08ca9d47347 [file] [log] [blame]
John Kessenich73ed17a2013-07-02 20:18:59 +00001#version 300 es
2
3in vec4 pos;
4
5uniform sampler2D s2D;
6uniform samplerCube sCube;
7uniform isampler2DArray is2DAbad; // ERROR, no default precision
8uniform sampler2DArrayShadow s2dASbad; // ERROR, no default precision
9
10precision highp sampler2D;
11precision mediump sampler2DArrayShadow;
12
13uniform sampler2DArrayShadow s2dAS;
14uniform isampler2DArray is2DAbad2; // ERROR, still no default precision
15
16uniform sampler2D s2Dhigh;
17
18void main()
19{
20 vec4 t = texture(s2D, vec2(0.1, 0.2));
21 t += texture(s2Dhigh, vec2(0.1, 0.2));
22 t += texture(s2dAS, vec4(0.5));
23
24 gl_Position = pos;
25}