[D3D12] Fix a typo in HLSL sqrt

This commit is contained in:
Triang3l 2018-08-16 16:19:45 +03:00
parent 14523145a2
commit ed7f4ec4be
1 changed files with 1 additions and 1 deletions

View File

@ -1767,7 +1767,7 @@ void HlslShaderTranslator::ProcessScalarAluInstruction(
EmitSourceDepth("clip(-xe_ps);\n"); EmitSourceDepth("clip(-xe_ps);\n");
break; break;
case AluScalarOpcode::kSqrt: case AluScalarOpcode::kSqrt:
EmitSourceDepth("xe_ps = float(xe_src0.x);\n"); EmitSourceDepth("xe_ps = sqrt(xe_src0.x);\n");
break; break;
case AluScalarOpcode::kMulsc0: case AluScalarOpcode::kMulsc0:
case AluScalarOpcode::kMulsc1: case AluScalarOpcode::kMulsc1: