forked from ShuriZma/suyu
1
0
Fork 0

vertex_shader: Implement MIN instruction.

This commit is contained in:
bunnei 2015-05-22 23:13:09 -04:00
parent 595fe49a8f
commit 875bd29766
1 changed files with 9 additions and 0 deletions

View File

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