Update g_verbose SpirvToolsDisassemble to output based on spirv target env for Metal and SPIRV. (#2306)
Fix up alignment in shaderc help string.
This commit is contained in:
parent
4a5eb7a2ef
commit
e541312851
@ -903,7 +903,7 @@ namespace bgfx
|
||||
" s_5\n"
|
||||
" metal\n"
|
||||
" pssl\n"
|
||||
" spirv Alias for spirv10-10. \n"
|
||||
" spirv Alias for spirv10-10. \n"
|
||||
" spirv10-10\n"
|
||||
" spirv13-11\n"
|
||||
" spirv14-11\n"
|
||||
|
@ -909,7 +909,7 @@ namespace bgfx { namespace metal
|
||||
{
|
||||
if (g_verbose)
|
||||
{
|
||||
glslang::SpirvToolsDisassemble(std::cout, spirv);
|
||||
glslang::SpirvToolsDisassemble(std::cout, spirv, SPV_ENV_VULKAN_1_0);
|
||||
}
|
||||
|
||||
spirv_cross::CompilerMSL msl(std::move(spirv) );
|
||||
|
@ -1041,7 +1041,7 @@ namespace bgfx { namespace spirv
|
||||
|
||||
if (g_verbose)
|
||||
{
|
||||
glslang::SpirvToolsDisassemble(std::cout, spirv);
|
||||
glslang::SpirvToolsDisassemble(std::cout, spirv, getSpirvTargetVersion(_version) );
|
||||
}
|
||||
|
||||
// Loop through the separate_images, and extract the uniform names:
|
||||
|
Loading…
Reference in New Issue
Block a user