2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Pica/VertexShader: Implement MAX instructions.

This commit is contained in:
Tony Wasserka 2014-12-13 21:22:55 +01:00
parent aff808b2fd
commit cd163fb59a

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:
{