mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
5ff0c048b7
Move the parameter verifictation to a centralized place where all the builtins are verified for correctness. Add verification for the new builtins with version and extension check These builtins are supported on GLSL since version 130 and GLES since version 300.
21 lines
585 B
GLSL
21 lines
585 B
GLSL
#version 450
|
|
#extension GL_EXT_texture_shadow_lod : enable
|
|
|
|
layout(binding = 0) uniform sampler2DArrayShadow s2da;
|
|
layout(binding = 1) uniform samplerCubeArrayShadow sca;
|
|
layout(binding = 2) uniform samplerCubeShadow sc;
|
|
|
|
layout(location = 0) out float c;
|
|
|
|
layout(location = 0) in vec4 tc;
|
|
|
|
void main() {
|
|
c = texture(s2da, tc, 0.0);
|
|
c = texture(sca, tc, 0.0, 0.0);
|
|
c = textureOffset(s2da, tc, ivec2(0.0), 0.0);
|
|
c = textureLod(s2da, tc, 0.0);
|
|
c = textureLod(sc, tc, 0.0);
|
|
c = textureLod(sca, tc, 0.0, 0.0);
|
|
c = textureLodOffset(s2da, tc, 0.0, ivec2(0.0));
|
|
}
|