mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Inline constants
It's slow
This commit is contained in:
parent
b6cc7af8cd
commit
98a924874f
1 changed files with 9 additions and 2 deletions
|
@ -431,14 +431,21 @@ void FragmentDecompiler::insertOutputs(std::stringstream & OS)
|
|||
|
||||
void FragmentDecompiler::insertConstants(std::stringstream & OS)
|
||||
{
|
||||
OS << "cbuffer CONSTANT : register(b2)" << std::endl;
|
||||
// TODO : Avoid constant recompilation and properly use constant buffer
|
||||
/* OS << "cbuffer CONSTANT : register(b2)" << std::endl;
|
||||
OS << "{" << std::endl;
|
||||
for (ParamType PT : m_parr.params[PARAM_UNIFORM])
|
||||
{
|
||||
for (ParamItem PI : PT.items)
|
||||
OS << " " << PT.type << " " << PI.name << ";" << std::endl;
|
||||
}
|
||||
OS << "};" << std::endl;
|
||||
OS << "};" << std::endl;*/
|
||||
|
||||
for (ParamType PT : m_parr.params[PARAM_UNIFORM])
|
||||
{
|
||||
for (ParamItem PI : PT.items)
|
||||
OS << PT.type << " " << PI.name << " = " << PI.value << ";" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
void FragmentDecompiler::insertMainStart(std::stringstream & OS)
|
||||
|
|
Loading…
Add table
Reference in a new issue