Add some missing invariant semantic checks, replace some misplaced sampler semantic checks, add parameter and structure member checks against new qualifiers.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23962 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -15,3 +15,19 @@ void foo()
|
||||
{
|
||||
gl_ClipDistance[2] = 3.7;
|
||||
}
|
||||
|
||||
struct sp {
|
||||
highp float f;
|
||||
in float g; // ERROR
|
||||
uniform float h; // ERROR
|
||||
invariant float i; // ERROR
|
||||
volatile float j; // ERROR
|
||||
layout(row_major) mat3 m3; // ERROR
|
||||
};
|
||||
|
||||
void foo3(invariant vec4 v4, // ERROR
|
||||
volatile vec3 v3,
|
||||
layout(location = 3) vec2 v2, // ERROR
|
||||
centroid vec3 cv3) // ERROR
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user