300samplerExternal.frag 1.2 KB

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