Track separate precision defaults for each kind of sampler, give initial defaults as per spec. Also make fragment floats have no default. Modify/add tests to adapt to these changes.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22066 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
#version 300 es
|
||||
|
||||
uniform sampler2D s2D;
|
||||
uniform sampler3D s3D;
|
||||
uniform lowp sampler3D s3D;
|
||||
uniform samplerCube sCube;
|
||||
uniform samplerCubeShadow sCubeShadow;
|
||||
uniform sampler2DShadow s2DShadow;
|
||||
uniform sampler2DArray s2DArray;
|
||||
uniform sampler2DArrayShadow s2DArrayShadow;
|
||||
uniform lowp samplerCubeShadow sCubeShadow;
|
||||
uniform lowp sampler2DShadow s2DShadow;
|
||||
uniform lowp sampler2DArray s2DArray;
|
||||
uniform lowp sampler2DArrayShadow s2DArrayShadow;
|
||||
|
||||
uniform isampler2D is2D;
|
||||
uniform isampler3D is3D;
|
||||
uniform isamplerCube isCube;
|
||||
uniform isampler2DArray is2DArray;
|
||||
|
||||
uniform usampler2D us2D;
|
||||
uniform usampler3D us3D;
|
||||
uniform usamplerCube usCube;
|
||||
uniform usampler2DArray us2DArray;
|
||||
uniform lowp isampler2D is2D;
|
||||
uniform lowp isampler3D is3D;
|
||||
uniform lowp isamplerCube isCube;
|
||||
uniform lowp isampler2DArray is2DArray;
|
||||
|
||||
uniform lowp usampler2D us2D;
|
||||
uniform lowp usampler3D us3D;
|
||||
uniform lowp usamplerCube usCube;
|
||||
uniform lowp usampler2DArray us2DArray;
|
||||
precision lowp float;
|
||||
in float c1D;
|
||||
in vec2 c2D;
|
||||
in vec3 c3D;
|
||||
@@ -28,15 +28,15 @@ flat in ivec2 ic2D;
|
||||
flat in ivec3 ic3D;
|
||||
flat in ivec4 ic4D;
|
||||
noperspective in vec4 badv; // ERROR
|
||||
in sampler2D bads; // ERROR
|
||||
precision lowp uint; // ERROR
|
||||
in sampler2D bads; // ERROR
|
||||
precision lowp uint; // ERROR
|
||||
|
||||
struct s {
|
||||
int i;
|
||||
sampler2D s; // ERROR
|
||||
sampler2D s;
|
||||
};
|
||||
|
||||
out s badout; // ERROR
|
||||
out s badout; // ERROR
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user