Pica/VertexShader: Implement MAX instructions.

This commit is contained in:
Tony Wasserka 2014-12-13 21:22:55 +01:00
parent aff808b2fd
commit cd163fb59a
1 changed files with 9 additions and 0 deletions

View File

@ -197,6 +197,15 @@ static void ProcessShaderCode(VertexShaderState& state) {
break;
}
case Instruction::OpCode::MAX:
for (int i = 0; i < 4; ++i) {
if (!swizzle.DestComponentEnabled(i))
continue;
dest[i] = std::max(src1[i], src2[i]);
}
break;
case Instruction::OpCode::DP3:
case Instruction::OpCode::DP4:
{