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() { 12 c = texture(s2da, tc, 0.0); 13 c = texture(sca, tc, 0.0, 0.0); 14 c = textureOffset(s2da, tc, ivec2(0.0), 0.0); 15 c = textureLod(s2da, tc, 0.0); 16 c = textureLod(sc, tc, 0.0); 17 c = textureLod(sca, tc, 0.0, 0.0); 18 c = 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 24 c = texture(s2da, tc, 0.0); 25 c = texture(sca, tc, 0.0, 0.0); 26 c = textureOffset(s2da, tc, ivec2(0.0), 0.0); 27 c = textureLod(s2da, tc, 0.0); 28 c = textureLod(sc, tc, 0.0); 29 c = textureLod(sca, tc, 0.0, 0.0); 30 c = textureLodOffset(s2da, tc, 0.0, ivec2(0.0)); 31} 32 33