John Kessenich | 73ed17a | 2013-07-02 20:18:59 +0000 | [diff] [blame] | 1 | #version 300 es |
| 2 | |
| 3 | in vec4 pos; |
| 4 | |
| 5 | uniform sampler2D s2D; |
| 6 | uniform samplerCube sCube; |
| 7 | uniform isampler2DArray is2DAbad; // ERROR, no default precision |
| 8 | uniform sampler2DArrayShadow s2dASbad; // ERROR, no default precision |
| 9 | |
| 10 | precision highp sampler2D; |
| 11 | precision mediump sampler2DArrayShadow; |
| 12 | |
| 13 | uniform sampler2DArrayShadow s2dAS; |
| 14 | uniform isampler2DArray is2DAbad2; // ERROR, still no default precision |
| 15 | |
| 16 | uniform sampler2D s2Dhigh; |
| 17 | |
| 18 | void 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 | } |