mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
1dde7113bb
avoids nullptr crash from reading memberType's name, and more user friendly error message.
20 lines
370 B
GLSL
20 lines
370 B
GLSL
#version 460
|
|
|
|
layout (location = 0) in vec4 io;
|
|
|
|
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 + vec4(test);
|
|
}
|
|
|
|
void main() {
|
|
o = io + foo();
|
|
}
|