Add auto-detection for dxc as a shader processing tool

This commit is contained in:
baldurk
2019-05-22 14:16:02 +01:00
parent 69e4be52cf
commit 807345fd0f
4 changed files with 36 additions and 14 deletions
@@ -557,6 +557,8 @@ rdcstr ShaderProcessingTool::DefaultArguments() const
return "-D -g -V -o {output_file} {input_file} -S {glsl_stage4} -e {entry_point}";
else if(tool == KnownShaderTool::spirv_as)
return "-o {output_file} {input_file}";
else if(tool == KnownShaderTool::dxc)
return "-T {hlsl_stage2}_6_0 -E {entry_point} -Fo {output_file} {input_file} -spirv";
return args;
}