matinfo / matdbg: fix SPIRV version, add validation.
The value we pass to spvContextCreate() is not SPV_ENV_UNIVERSAL_1_3, which is what we use in GLSLPostProcessor. Also add a call to spvValidateBinary(), which would have caught this oversight.
This commit is contained in:
@@ -73,7 +73,7 @@ static void printUsage(const char* name) {
|
||||
" --print-glsl=[index], -g\n"
|
||||
" Print GLSL for the nth shader (0 is the first OpenGL shader)\n\n"
|
||||
" --print-spirv=[index], -s\n"
|
||||
" Print disasm for the nth shader (0 is the first Vulkan shader)\n\n"
|
||||
" Validate and print disasm for the nth shader (0 is the first Vulkan shader)\n\n"
|
||||
" --print-metal=[index], -m\n"
|
||||
" Print Metal Shading Language for the nth shader (0 is the first Metal shader)\n\n"
|
||||
" --print-vkglsl=[index], -v\n"
|
||||
|
||||
Reference in New Issue
Block a user