mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
gl: Use uniform buffer for transform constants.
This commit is contained in:
parent
247af0ebbf
commit
5447521ce5
3 changed files with 11 additions and 11 deletions
|
@ -46,11 +46,10 @@ void GLVertexDecompilerThread::insertInputs(std::stringstream & OS, const std::v
|
|||
|
||||
void GLVertexDecompilerThread::insertConstants(std::stringstream & OS, const std::vector<ParamType> & constants)
|
||||
{
|
||||
for (const ParamType PT : constants)
|
||||
{
|
||||
for (const ParamItem &PI : PT.items)
|
||||
OS << "uniform " << PT.type << " " << PI.name << ";" << std::endl;
|
||||
}
|
||||
OS << "layout(std140, binding = 1) uniform VertexConstantsBuffer" << std::endl;
|
||||
OS << "{" << std::endl;
|
||||
OS << " vec4 vc[468];" << std::endl;
|
||||
OS << "};" << std::endl;
|
||||
}
|
||||
|
||||
struct reg_info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue