]> git.tdb.fi Git - libs/gl.git/commit
Rework ProgramData to do less unnecessary work
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Sep 2014 16:58:08 +0000 (19:58 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 29 Sep 2014 15:10:02 +0000 (18:10 +0300)
commit5ae4b0008b25072b5716f0cb585133315625a661
tree054ef4b9d2bf03109fe38d0fc92f69879628b099
parentb1c863c9e053f2250327a743cee92b98c39e1268
Rework ProgramData to do less unnecessary work

Changes are now tracked per-uniform, allowing more updates to be skipped.
The buffers used in a program are cached, making the no-changes case
faster.

Additionally, Program now creates a UniformBlockInfo struct for the
default uniform.  The program-wide uniform layout hash has been repurposed
to cover the entire program.
source/program.cpp
source/program.h
source/programdata.cpp
source/programdata.h