Clean the implementation of GL_EXT_texture_shadow_lod.
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.
This commit is contained in:
parent
3f02132668
commit
5ff0c048b7
15 changed files with 443 additions and 92 deletions
22
Test/glsl.es320.extTextureShadowLod.frag
Normal file
22
Test/glsl.es320.extTextureShadowLod.frag
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#version 320 es
|
||||
|
||||
#extension GL_EXT_texture_shadow_lod : enable
|
||||
|
||||
|
||||
uniform lowp sampler2DArrayShadow s2da;
|
||||
uniform lowp samplerCubeArrayShadow sca;
|
||||
uniform lowp samplerCubeShadow sc;
|
||||
|
||||
in lowp vec4 tc;
|
||||
out lowp float c;
|
||||
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));
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue