Skip to content
Snippets Groups Projects
Commit cd163fb5 authored by Tony Wasserka's avatar Tony Wasserka
Browse files

Pica/VertexShader: Implement MAX instructions.

parent aff808b2
No related branches found
No related tags found
Loading
......@@ -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:
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment