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

vertex_shader: Implement FLR instruction.

This commit is contained in:
bunnei 2015-05-06 18:37:12 -04:00
parent f935130a0f
commit 692a74c09e

View file

@ -235,6 +235,15 @@ static void ProcessShaderCode(VertexShaderState& state) {
break;
}
case OpCode::Id::FLR:
for (int i = 0; i < 4; ++i) {
if (!swizzle.DestComponentEnabled(i))
continue;
dest[i] = float24::FromFloat32(std::floor(src1[i].ToFloat32()));
}
break;
case OpCode::Id::MAX:
for (int i = 0; i < 4; ++i) {
if (!swizzle.DestComponentEnabled(i))