mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 06:51:05 +00:00
VS: Implement FLR and SLTI instructions.
This commit is contained in:
parent
fb52ee9cc7
commit
0980ae1a1c
@ -229,6 +229,22 @@ static void ProcessShaderCode(VertexShaderState& state) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case Instruction::OpCode::FLR:
|
||||||
|
{
|
||||||
|
for (int i = 0; i < 4; ++i)
|
||||||
|
dest[i] = float24::FromFloat32(floor(src1[i].ToFloat32()));
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case Instruction::OpCode::SLTI:
|
||||||
|
{
|
||||||
|
for (int i = 0; i < 4; ++i)
|
||||||
|
dest[i] = float24::FromFloat32((src1[i] < src2[i]) ? 1.0f : 0.0f);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case Instruction::OpCode::MAX:
|
case Instruction::OpCode::MAX:
|
||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
if (!swizzle.DestComponentEnabled(i))
|
if (!swizzle.DestComponentEnabled(i))
|
||||||
|
Loading…
Reference in New Issue
Block a user