• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 100
2
3#extension GL_OES_EGL_image_external : enable
4
5uniform samplerExternalOES sExt;
6precision mediump samplerExternalOES;
7uniform samplerExternalOES mediumExt;
8uniform highp samplerExternalOES highExt;
9
10void main()
11{
12    texture2D(sExt, vec2(0.2));
13    texture2D(mediumExt, vec2(0.2));
14    texture2D(highExt, vec2(0.2));
15    texture2DProj(sExt, vec3(0.3));
16    texture2DProj(sExt, vec4(0.3));
17
18    int lod = 0;
19    highp float bias = 0.01;
20    textureSize(sExt, lod);  // ERROR
21    texture(sExt, vec2(0.2));  // ERROR
22    texture(sExt, vec2(0.2), bias);  // ERROR
23    textureProj(sExt, vec3(0.2));  // ERROR
24    textureProj(sExt, vec3(0.2), bias);  // ERROR
25    textureProj(sExt, vec4(0.2));  // ERROR
26    textureProj(sExt, vec4(0.2), bias);  // ERROR
27    texelFetch(sExt, ivec2(4), lod);  // ERROR
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_OES_EGL_image_external : disable
36
37#extension GL_OES_EGL_image_external_essl3 : enable
38uniform samplerExternalOES badExt;  // ERROR
39#extension GL_OES_EGL_image_external_essl3 : disable
40
41uniform samplerExternalOES badExt;  // ERROR
42