Enhance readability of error messages for GLSL
Specifically, make GLSL link error messages more specific and output only information relevant to the error. Also change type printing to more closely reflect GLSL syntax. This is the default for link error messages, but must me enabled with the new option --enhanced-msgs for compilation error messages. Also with --enhanced-msgs, only emit one error message per source line.
This commit is contained in:
22
Test/enhanced.5.vert
Normal file
22
Test/enhanced.5.vert
Normal file
@@ -0,0 +1,22 @@
|
||||
#version 450 core
|
||||
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec2 aTexCoords;
|
||||
|
||||
layout (binding = 0) uniform anonblock {
|
||||
mat4 model;
|
||||
mat4 view;
|
||||
mat4 projection;
|
||||
} ;
|
||||
|
||||
layout (location = 0) out VS_OUT
|
||||
{
|
||||
vec2 TexCoords;
|
||||
} vs_out;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection * view * model * vec4(aPos, 1.0);
|
||||
vs_out.TexCoords = aTexCoords;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user