tweak error behavior for redeclared uniforms for vulkan-relaxed

avoids nullptr crash from reading memberType's name, and more user
friendly error message.
This commit is contained in:
Malcolm Bechard 2023-10-30 15:28:36 -04:00 committed by arcady-lunarg
parent f8dd5adde4
commit 1dde7113bb
3 changed files with 59 additions and 42 deletions

View file

@ -7,10 +7,13 @@ out vec4 o;
// default uniforms will be gathered into a uniform block
uniform vec4 a; // declared in both stages with different types
uniform float test; // declared twice in this compilation unit
uniform vec2 test;
vec4 foo() {
return a;
return a + vec4(test);
}
void main() {
o = io + foo();
}
}