xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/spv.ext.textureShadowLod.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 450
2#extension GL_EXT_texture_shadow_lod : enable
3
4layout(binding = 0) uniform sampler2DArrayShadow s2da;
5layout(binding = 1) uniform samplerCubeArrayShadow sca;
6layout(binding = 2) uniform samplerCubeShadow sc;
7
8layout(location = 0) out float c;
9
10layout(location = 0) in vec4 tc;
11
12void main() {
13    c = texture(s2da, tc, 0.0);
14    c = texture(sca, tc, 0.0, 0.0);
15    c = textureOffset(s2da, tc, ivec2(0.0), 0.0);
16    c = textureLod(s2da, tc, 0.0);
17    c = textureLod(sc, tc, 0.0);
18    c = textureLod(sca, tc, 0.0, 0.0);
19    c = textureLodOffset(s2da, tc, 0.0, ivec2(0.0));
20}
21