yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
5ff0c048
main
1#version 450 2#extension GL_EXT_texture_shadow_lod : enable 3 4uniform sampler2DArrayShadow s2da ; 5uniform samplerCubeArrayShadow sca ; 6uniform samplerCubeShadow sc ; 7 8out float c ; 9in vec4 tc ; 10 11void pass () { 12c = texture (s2da ,tc ,0.0 ); 13c = texture (sca ,tc ,0.0 ,0.0 ); 14c = textureOffset (s2da ,tc ,ivec2 (0.0 ),0.0 ); 15c = textureLod (s2da ,tc ,0.0 ); 16c = textureLod (sc ,tc ,0.0 ); 17c = textureLod (sca ,tc ,0.0 ,0.0 ); 18c = textureLodOffset (s2da ,tc ,0.0 ,ivec2 (0.0 )); 19} 20 21#extension GL_EXT_texture_shadow_lod : disable 22void fail () { 23// All these builtins should fail to compile 24c = texture (s2da ,tc ,0.0 ); 25c = texture (sca ,tc ,0.0 ,0.0 ); 26c = textureOffset (s2da ,tc ,ivec2 (0.0 ),0.0 ); 27c = textureLod (s2da ,tc ,0.0 ); 28c = textureLod (sc ,tc ,0.0 ); 29c = textureLod (sca ,tc ,0.0 ,0.0 ); 30c = textureLodOffset (s2da ,tc ,0.0 ,ivec2 (0.0 )); 31} 32