• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 300 es
2
3#extension GL_OES_EGL_image_external_essl3 : 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));  // 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_OES_EGL_image_external_essl3 : disable
36
37#extension GL_OES_EGL_image_external : enable
38uniform samplerExternalOES badExt;  // ERROR
39#extension GL_OES_EGL_image_external : disable
40
41uniform samplerExternalOES badExt;  // ERROR
42