Fix debug info file and source strings
The file and source text was not being set correctly in the test output. This change makes the test fixture consistent with the command line behavior, "-gVS", which was my original intent when I added these tests.
This commit is contained in:
parent
b0df68c490
commit
bf08e1db5c
12 changed files with 2155 additions and 1268 deletions
|
|
@ -13,7 +13,7 @@ spv.debuginfo.bufferref.glsl.frag
|
|||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||
EntryPoint Fragment 14 "main" 76 131
|
||||
ExecutionMode 14 OriginUpperLeft
|
||||
2: String ""
|
||||
2: String "spv.debuginfo.bufferref.glsl.frag"
|
||||
8: String "uint"
|
||||
16: String "main"
|
||||
19: String "// OpModuleProcessed auto-map-locations
|
||||
|
|
@ -23,6 +23,34 @@ spv.debuginfo.bufferref.glsl.frag
|
|||
// OpModuleProcessed keep-uncalled
|
||||
// OpModuleProcessed entry-point main
|
||||
#line 1
|
||||
#version 450 core
|
||||
#extension GL_EXT_buffer_reference : enable
|
||||
|
||||
layout(buffer_reference, std430) buffer MeshVertexPositions {
|
||||
float data[];
|
||||
};
|
||||
|
||||
struct Mesh {
|
||||
MeshVertexPositions positions;
|
||||
};
|
||||
|
||||
layout(set = 0, binding = 0) readonly buffer PerPass_meshes {
|
||||
Mesh data[];
|
||||
} perPass_meshes;
|
||||
|
||||
layout(location = 0) out vec4 out_fragColor;
|
||||
|
||||
layout(location = 0) in flat uint tri_idx0;
|
||||
|
||||
void main() {
|
||||
Mesh meshData = perPass_meshes.data[tri_idx0];
|
||||
|
||||
vec3 vertex_pos0 = vec3(meshData.positions.data[3 * tri_idx0],
|
||||
meshData.positions.data[3 * tri_idx0 + 1],
|
||||
meshData.positions.data[3 * tri_idx0 + 2]);
|
||||
|
||||
out_fragColor = vec4(vertex_pos0, 1.0);
|
||||
}
|
||||
"
|
||||
31: String "Mesh"
|
||||
34: String "float"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue