mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Use GLSL 460 for built-in spirv-cross -> GLSL calls
spirv-cross defaults to 450 but will not parse shaders containing the RayQuery capability unless the version is set to 460. This change modifies the built-in GLSL cross tool to set `--version 460`. This change does not affect user-specified spirv-cross configurations.
This commit is contained in:
committed by
Baldur Karlsson
parent
407c74de01
commit
de07e66728
@@ -705,7 +705,7 @@ ShaderProcessingTool::ShaderProcessingTool(const QVariant &var)
|
||||
rdcstr ShaderProcessingTool::DefaultArguments() const
|
||||
{
|
||||
if(tool == KnownShaderTool::SPIRV_Cross)
|
||||
return "--vulkan-semantics --entry {entry_point} --stage {glsl_stage4}";
|
||||
return "--vulkan-semantics --entry {entry_point} --stage {glsl_stage4} --version 460";
|
||||
else if(tool == KnownShaderTool::SPIRV_Cross_OpenGL)
|
||||
return "--entry {entry_point} --stage {glsl_stage4}";
|
||||
else if(tool == KnownShaderTool::spirv_dis || tool == KnownShaderTool::spirv_dis_OpenGL)
|
||||
|
||||
Reference in New Issue
Block a user