mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
rsx: Shader decompiler cleanup and improvements
- Improve support for float16_t by minimizing mixed inputs to functions (ambiguous overloads) - Minimize amount of downcasts in code by using opcode flags - Re-enable float16_t support for vulkan
This commit is contained in:
parent
a668560c68
commit
06a85f00d1
11 changed files with 162 additions and 113 deletions
|
@ -241,7 +241,8 @@ std::string VertexProgramDecompiler::Format(const std::string& code)
|
|||
}
|
||||
},
|
||||
{ "$cond", std::bind(std::mem_fn(&VertexProgramDecompiler::GetCond), this) },
|
||||
{ "$ifbcond", std::bind(std::mem_fn(&VertexProgramDecompiler::GetOptionalBranchCond), this) }
|
||||
{ "$ifbcond", std::bind(std::mem_fn(&VertexProgramDecompiler::GetOptionalBranchCond), this) },
|
||||
{ "$Ty", [this](){ return getFloatTypeName(4); } }
|
||||
};
|
||||
|
||||
return fmt::replace_all(code, repl_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue