Add column to location logs

This option can be enabled using the new --error-column option to the command line utility.
It can also be enabled programatically.
This commit is contained in:
Antoine 2024-07-20 00:37:58 +02:00 committed by GitHub
parent 52f68dc6b2
commit dc9f6f61ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 77 additions and 11 deletions

View file

@ -0,0 +1,12 @@
error-column.vert
ERROR: error-column.vert:7:16: 'model' : member storage qualifier cannot contradict block storage qualifier
ERROR: error-column.vert:8:16: 'view' : member storage qualifier cannot contradict block storage qualifier
ERROR: error-column.vert:9:16: 'projection' : member storage qualifier cannot contradict block storage qualifier
ERROR: error-column.vert:17:16: 'texCoord1' : member storage qualifier cannot contradict block storage qualifier
ERROR: error-column.vert:24:52: 'Pos' : undeclared identifier
ERROR: error-column.vert:24:60: 'constructor' : not enough data provided for construction
ERROR: error-column.vert:24:17: 'assign' : cannot convert from ' temp highp 4X4 matrix of float' to ' gl_Position 4-component vector of float Position'
ERROR: 7 compilation errors. No code generated.
SPIR-V is not generated for failed compile or link

27
Test/error-column.vert Normal file
View file

@ -0,0 +1,27 @@
#version 450 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec2 aTexCoords;
layout (binding = 0) uniform block {
const mat4 model;
const mat4 view;
const mat4 projection;
};
layout (location = 0) out Vertex
{
vec3 color;
vec3 worldSpacePos;
vec3 worldSpaceNorm;
const vec2 texCoord1;
flat int cameraIndex;
float ii;
} vs_out;
void main()
{
gl_Position = projection * view * model * vec4(Pos, 1.0);
vs_out.texCoord1 = aTexCoords;
}

View file

@ -348,6 +348,13 @@ diff -b $BASEDIR/enhanced.7.link.out "$TARGETDIR/enhanced.7.link.out" || HASERRO
run --enhanced-msgs -V --target-env vulkan1.2 --amb --aml spv.textureError.frag > "$TARGETDIR/spv.textureError.frag.out"
diff -b $BASEDIR/spv.textureError.frag.out "$TARGETDIR/spv.textureError.frag.out" || HASERROR=1
#
# Test error column
#
echo "Testing error-column"
run --error-column -C -V error-column.vert > "$TARGETDIR/error-column.vert.out"
diff -b $BASEDIR/error-column.vert.out $TARGETDIR/error-column.vert.out || HASERROR=1
#
# Test UTF8BOM
#