Add the original-style texture-rectangle texturing functions, and allow rectangular samplers to be declared under relaxed semantic checks.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27538 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2014-07-29 17:18:24 +00:00
parent 0bed221e59
commit 019a62b0ec
4 changed files with 123 additions and 4 deletions

View File

@@ -199,3 +199,29 @@ void foo2324()
v = texture1DProjLod(s1D, v, f);
v = shadow2DProjLod(s2DS, v, f);
}
uniform sampler2DRect s2DRbad;
void foo121111()
{
vec2 v2;
vec4 v = texture2DRect(s2DRbad, v2);
}
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect s2DR;
uniform sampler2DRectShadow s2DRS;
void foo12111()
{
vec2 v2;
vec3 v3;
vec4 v4;
vec4 v;
v = texture2DRect(s2DR, v2);
v = texture2DRectProj(s2DR, v3);
v = texture2DRectProj(s2DR, v4);
v = shadow2DRect(s2DRS, v3);
v = shadow2DRectProj(s2DRS, v4);
}