mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-10 04:40:05 +00:00
Refactor software renderer (#6621)
This commit is contained in:
parent
7198243319
commit
9b82de6b24
39 changed files with 1815 additions and 1796 deletions
|
@ -14,7 +14,6 @@
|
|||
#include "video_core/shader/shader_interpreter.h"
|
||||
#include "video_core/shader/shader_jit_x64_compiler.h"
|
||||
|
||||
using float24 = Pica::float24;
|
||||
using JitShader = Pica::Shader::JitShader;
|
||||
using ShaderInterpreter = Pica::Shader::InterpreterEngine;
|
||||
|
||||
|
@ -51,14 +50,14 @@ public:
|
|||
}
|
||||
|
||||
void RunJit(Pica::Shader::UnitState& shader_unit, float input) {
|
||||
shader_unit.registers.input[0].x = float24::FromFloat32(input);
|
||||
shader_unit.registers.temporary[0].x = float24::FromFloat32(0);
|
||||
shader_unit.registers.input[0].x = Pica::f24::FromFloat32(input);
|
||||
shader_unit.registers.temporary[0].x = Pica::f24::Zero();
|
||||
shader_jit.Run(*shader_setup, shader_unit, 0);
|
||||
}
|
||||
|
||||
void RunInterpreter(Pica::Shader::UnitState& shader_unit, float input) {
|
||||
shader_unit.registers.input[0].x = float24::FromFloat32(input);
|
||||
shader_unit.registers.temporary[0].x = float24::FromFloat32(0);
|
||||
shader_unit.registers.input[0].x = Pica::f24::FromFloat32(input);
|
||||
shader_unit.registers.temporary[0].x = Pica::f24::Zero();
|
||||
shader_interpreter.Run(*shader_setup, shader_unit);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue