Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-10-05 19:26:50 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-10-06 02:50:51 +0300
commitd7d32ad45217736c677edd22906d980d03aeb175 (patch)
tree4f1a6c0b2102226ea50d9510dfa2996fb562794e /build_files
parent9ab3db11c797e1ec64446aa9ee2e91f3020ec772 (diff)
Gawain: Simplify / optimize the shader interface.
This changes quite a few things: - Drops the allocation of inputs as a chunk. - Merge the linked list system into the Gwn_ShaderInput. - Put name buffer into another memory block, easily resizable. - Use offset instead of char* to direct to input name. - Add only requested uniforms dynamicaly to the Shader Interface. This drops some minor optimisation and use a bit more memory for small shaders (which are fixed count). But this saves a lot of memory when using UBOs because the names and the Gwn_ShaderInput were alloc'ed for every UBO variable. This also reduce the Shader Interface initial generation. The lookup time is left unchanged.
Diffstat (limited to 'build_files')
0 files changed, 0 insertions, 0 deletions