[D3D12] Fix ps_param_gen rounding ignored with ROV

This commit is contained in:
Triang3l 2019-04-05 23:57:29 +03:00
parent 6db0ad663b
commit 0367e1a536
1 changed files with 2 additions and 2 deletions

View File

@ -929,8 +929,8 @@ void DxbcShaderTranslator::StartPixelShader() {
EncodeVectorMaskedOperand(D3D10_SB_OPERAND_TYPE_TEMP, 0b0011, 1));
shader_code_.push_back(param_gen_value_temp);
shader_code_.push_back(EncodeVectorSwizzledOperand(
D3D10_SB_OPERAND_TYPE_INPUT, kSwizzleXYZW, 1));
shader_code_.push_back(uint32_t(InOutRegister::kPSInPosition));
D3D10_SB_OPERAND_TYPE_TEMP, kSwizzleXYZW, 1));
shader_code_.push_back(param_gen_value_temp);
shader_code_.push_back(
EncodeVectorReplicatedOperand(D3D10_SB_OPERAND_TYPE_TEMP, 2, 1));
shader_code_.push_back(param_gen_value_temp);