mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
Merge pull request #624 from Subv/f2f_round
GPU: Implemented the F2F 'round' rounding mode.
This commit is contained in:
commit
637f9d780a
1 changed files with 3 additions and 0 deletions
|
@ -1213,6 +1213,9 @@ private:
|
||||||
switch (instr.conversion.f2f.rounding) {
|
switch (instr.conversion.f2f.rounding) {
|
||||||
case Tegra::Shader::F2fRoundingOp::None:
|
case Tegra::Shader::F2fRoundingOp::None:
|
||||||
break;
|
break;
|
||||||
|
case Tegra::Shader::F2fRoundingOp::Round:
|
||||||
|
op_a = "roundEven(" + op_a + ')';
|
||||||
|
break;
|
||||||
case Tegra::Shader::F2fRoundingOp::Floor:
|
case Tegra::Shader::F2fRoundingOp::Floor:
|
||||||
op_a = "floor(" + op_a + ')';
|
op_a = "floor(" + op_a + ')';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue