I’m failing to create a graphics pipeline with segfault error. I’ve enabled the validation layers and after the fragment shader gets created, I get following message:
UNASSIGNED-CoreValidation-Shader-InconsistentSpirv(ERROR / SPEC): msgNum: 0 - SPIR-V module not valid: Invalid SPIR-V magic number. Objects: 1  0, type: 0, name: NULL
I’ve checked the frag.spv file with a hex editor and the sequence appears to be alright:
0302 2307 0000 0100 0700 0800 0D00 0000
I’ve tried to remove the fragment shader from the VkPipelineShaderStageCreateInfo (only vertex shader left) and the pipeline creation succeeded. So it appears the validation is right and the fragment shader is somehow wrong?
However, I’m stucked at how to proceed, as the shader appears to be alright (the magic number is ok). Any hints how to proceed debugging this issue?
Thank you very much,