From 096d78a2f9f4883264dde9f27661c532706b4b0f Mon Sep 17 00:00:00 2001 From: Triang3l Date: Tue, 23 Oct 2018 11:04:36 +0300 Subject: [PATCH] [D3D12] Expose ROV toggle in xenia-gpu-shader-compiler --- src/xenia/gpu/shader_compiler_main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/shader_compiler_main.cc b/src/xenia/gpu/shader_compiler_main.cc index e37ce9ea7..5acaf98ca 100644 --- a/src/xenia/gpu/shader_compiler_main.cc +++ b/src/xenia/gpu/shader_compiler_main.cc @@ -35,6 +35,8 @@ DEFINE_string(shader_input_type, "", DEFINE_string(shader_output, "", "Output shader file path."); DEFINE_string(shader_output_type, "ucode", "Translator to use: [ucode, glsl45, spirv, spirvtext, dxbc]."); +DEFINE_bool(shader_output_dxbc_rov, false, + "Output ROV-based output-merger code in DXBC pixel shaders."); namespace xe { namespace gpu { @@ -100,7 +102,8 @@ int shader_compiler_main(const std::vector& args) { translator = std::make_unique( GlslShaderTranslator::Dialect::kGL45); } else if (FLAGS_shader_output_type == "dxbc") { - translator = std::make_unique(); + translator = + std::make_unique(FLAGS_shader_output_dxbc_rov); } else { translator = std::make_unique(); }