Blender Git Loki
Git Commits -> Revision 7734b00
Revision 7734b00 by Clément Foucault (greasepencil-object, greasepencil-refactor, temp-gpencil-eval) December 10, 2019, 00:43 (GMT) |
GPencil: Refactor: Add basic Material color support via UBO For now there is at least one UBO per object. It is kept relatively small to avoid overhead. When we implement sharing of UBOs accross objects we could increase the material count per UBO and reduce the binding overhead. This also put the BLI_memblocks in the ViewLayer instead of the viewport storage list. This is because we need to correctly free UBOs when blender quits. This can become a problem in the future but there are other places like this in other engines so we should fix them all at once. |
Commit Details:
Full Hash: 7734b00563ba00389ae1ecf49aba197ed917f92c
Parent Commit: 980d1d5
Lines Changed: +229, -29
1 Added Path:
/source/blender/draw/engines/gpencil/gpencil_data.c (+117, -0) (View)
7 Modified Paths:
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+1, -3) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+46, -18) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+46, -6) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader.c (+5, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl (+11, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+2, -2) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+1, -3) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+46, -18) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+46, -6) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader.c (+5, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl (+11, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+2, -2) (Diff)