From ed7f4ec4be4d46630ef4e691feb974f9bcbdc434 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Thu, 16 Aug 2018 16:19:45 +0300 Subject: [PATCH] [D3D12] Fix a typo in HLSL sqrt --- src/xenia/gpu/hlsl_shader_translator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/hlsl_shader_translator.cc b/src/xenia/gpu/hlsl_shader_translator.cc index b45ea2ef4..cf8561dd8 100644 --- a/src/xenia/gpu/hlsl_shader_translator.cc +++ b/src/xenia/gpu/hlsl_shader_translator.cc @@ -1767,7 +1767,7 @@ void HlslShaderTranslator::ProcessScalarAluInstruction( EmitSourceDepth("clip(-xe_ps);\n"); break; case AluScalarOpcode::kSqrt: - EmitSourceDepth("xe_ps = float(xe_src0.x);\n"); + EmitSourceDepth("xe_ps = sqrt(xe_src0.x);\n"); break; case AluScalarOpcode::kMulsc0: case AluScalarOpcode::kMulsc1: