]> git.tdb.fi Git - libs/gl.git/commit
Eliminate the polymorphic Uniform class hierarchy
authorMikko Rasa <tdb@tdb.fi>
Tue, 28 Sep 2021 22:49:20 +0000 (01:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 28 Sep 2021 22:49:20 +0000 (01:49 +0300)
commit729a477b47e97aea41f3f0b5db551f02bf70d1ee
tree24648f6d9c71ac441b12885b427b9e7bd6e22c10
parent4e20afbda6adb0008e286bf7fb947438aeb7a97e
Eliminate the polymorphic Uniform class hierarchy

Dynamically allocating a separate object for every uniform is not very
cache friendly.  ProgramData now stores uniform values in a single memory
block instead.
source/core/datatype.h
source/core/uniform.h [deleted file]
source/core/uniformblock.cpp
source/core/uniformblock.h
source/materials/material.cpp
source/materials/renderpass.cpp
source/materials/technique.cpp
source/render/programdata.cpp
source/render/programdata.h