gl: Use uniform buffer for transform constants.

This commit is contained in:
Vincent Lejeune 2015-11-17 21:02:45 +01:00
parent 247af0ebbf
commit 5447521ce5
3 changed files with 11 additions and 11 deletions

View file

@ -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