Update: I found the problem…my apologies for posting this.
Please tell me how to find the issue, this is from the official vulkan tutorial and it does not build.
Here is the error message:
$ glslangValidator -V shader.frag -o frag.spv
shader.frag
ERROR: shader.frag:2: '' : syntax error, unexpected INTCONSTANT
ERROR: 1 compilation errors. No code generated.
ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point
SPIR-V is not generated for failed compile or link
File that is directly from the official tutorial:
#version 450
2
3 layout(location = 0) in vec3 fragColor;
4
5 layout(location = 0) out vec4 outColor;
void main() {
8 outColor = vec4(fragColor, 1.0);
9 }
Screenshot of tutorial