mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user