yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
c9e03360
main
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{ 12texture2D(sExt, vec2( 0.2 )); // ERROR 13texture2D(mediumExt, vec2( 0.2 )); // ERROR 14texture2D(highExt, vec2( 0.2 )); // ERROR 15texture2DProj(sExt, vec3( 0.3 )); // ERROR 16texture2DProj(sExt, vec4( 0.3 )); // ERROR 17 18int lod = 0 ; 19highp float bias = 0.01 ; 20textureSize(sExt, lod); 21texture(sExt, vec2( 0.2 )); 22texture(sExt, vec2( 0.2 ), bias); 23textureProj(sExt, vec3( 0.2 )); 24textureProj(sExt, vec3( 0.2 ), bias); 25textureProj(sExt, vec4( 0.2 )); 26textureProj(sExt, vec4( 0.2 ), bias); 27texelFetch(sExt, ivec2( 4 ), lod); 28 29texture3D(sExt, vec3( 0.3 )); // ERROR 30texture2DProjLod(sExt, vec3( 0.3 ), 0.3 ); // ERROR 31texture(sExt, vec3( 0.3 )); // ERROR 32textureProjLod(sExt, vec3( 0.3 ), 0.3 ); // ERROR 33} 34 35#extension GL_EXT_YUV_target : disable 36 37uniform __samplerExternal2DY2YEXT badExt; // ERROR 38