• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 300 es
2
3#extension GL_EXT_YUV_target : enable
4
5uniform __samplerExternal2DY2YEXT sExt;
6precision mediump __samplerExternal2DY2YEXT;
7uniform __samplerExternal2DY2YEXT mediumExt;
8uniform highp __samplerExternal2DY2YEXT highExt;
9
10void main()
11{
12    texture2D(sExt, vec2(0.2));  // ERROR
13    texture2D(mediumExt, vec2(0.2));  // ERROR
14    texture2D(highExt, vec2(0.2));  // ERROR
15    texture2DProj(sExt, vec3(0.3));  // ERROR
16    texture2DProj(sExt, vec4(0.3));  // ERROR
17
18    int lod = 0;
19    highp float bias = 0.01;
20    textureSize(sExt, lod);
21    texture(sExt, vec2(0.2));
22    texture(sExt, vec2(0.2), bias);
23    textureProj(sExt, vec3(0.2));
24    textureProj(sExt, vec3(0.2), bias);
25    textureProj(sExt, vec4(0.2));
26    textureProj(sExt, vec4(0.2), bias);
27    texelFetch(sExt, ivec2(4), lod);
28
29    texture3D(sExt, vec3(0.3));  // ERROR
30    texture2DProjLod(sExt, vec3(0.3), 0.3);  // ERROR
31    texture(sExt, vec3(0.3));  // ERROR
32    textureProjLod(sExt, vec3(0.3), 0.3);  // ERROR
33}
34
35#extension GL_EXT_YUV_target : disable
36
37uniform __samplerExternal2DY2YEXT badExt;  // ERROR
38
39