mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-22 23:17:51 +00:00
gl_shader_decompiler: Let OpenGL interpret floats.
- Accuracy is lost in translation to string, e.g. with NaN. - Needed for Super Mario Odyssey.
This commit is contained in:
parent
06254058b4
commit
3ee2d948a2
2 changed files with 6 additions and 11 deletions
|
@ -602,12 +602,12 @@ private:
|
|||
|
||||
/// Generates code representing a 19-bit immediate value
|
||||
static std::string GetImmediate19(const Instruction& instr) {
|
||||
return std::to_string(instr.alu.GetImm20_19());
|
||||
return fmt::format("uintBitsToFloat({})", instr.alu.GetImm20_19());
|
||||
}
|
||||
|
||||
/// Generates code representing a 32-bit immediate value
|
||||
static std::string GetImmediate32(const Instruction& instr) {
|
||||
return std::to_string(instr.alu.GetImm20_32());
|
||||
return fmt::format("uintBitsToFloat({})", instr.alu.GetImm20_32());
|
||||
}
|
||||
|
||||
/// Generates code representing a texture sampler.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue