Blender Git Loki
Git Commits -> Revision 81632de
Revision 81632de by Clément Foucault (draw-viewport-data, eevee-rewrite, temp-eevee-gpencil-rewrite, viewport-compositor) March 25, 2021, 00:03 (GMT) |
DRW: Move mempool datas to a DRW managed struct. Same idea as previous commit. This cleans-up the interface and put all viewport related data inside the `DRWData` struct. The draw manager is responsible for freeing it. That is the main point of this all. In the future, we can have custom freeing method for each engine. This also move the DefaultFramebuffer/TextureList and the engine related data to a new `DRWViewData` struct. This struct manages the per view (as in stereo view) engine data. There is a bit of cleanup in the way the draw manager is setup. We now use a temporary DRWData instead of creating a dummy viewport. |
Commit Details:
Full Hash: 81632de706188eb304686aa35d5d3ee0cc717eb3
Parent Commit: f7cb199
Lines Changed: +910, -1097
2 Added Paths:
/source/blender/draw/intern/draw_view_data.cc (+239, -0) (View)
/source/blender/draw/intern/draw_view_data.h (+133, -0) (View)
/source/blender/draw/intern/draw_view_data.h (+133, -0) (View)
1 Deleted Path:
/source/blender/draw/DRW_engine_types.h (+0, -51)
15 Modified Paths:
/.clang-format (+1, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+2, -1) (Diff)
/source/blender/draw/DRW_engine.h (+4, -4) (Diff)
/source/blender/draw/intern/draw_instance_data.c (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+341, -379) (Diff)
/source/blender/draw/intern/draw_manager.h (+41, -7) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+14, -12) (Diff)
/source/blender/draw/intern/draw_manager_profiling.c (+3, -4) (Diff)
/source/blender/draw/intern/draw_manager_text.h (+8, -0) (Diff)
/source/blender/draw/intern/draw_texture_pool.cc (+0, -1) (Diff)
/source/blender/draw/intern/DRW_render.h (+5, -2) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+10, -6) (Diff)
/source/blender/gpu/GPU_texture.h (+8, -0) (Diff)
/source/blender/gpu/GPU_viewport.h (+10, -86) (Diff)
/source/blender/gpu/intern/gpu_viewport.c (+89, -544) (Diff)
/source/blender/draw/CMakeLists.txt (+2, -1) (Diff)
/source/blender/draw/DRW_engine.h (+4, -4) (Diff)
/source/blender/draw/intern/draw_instance_data.c (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+341, -379) (Diff)
/source/blender/draw/intern/draw_manager.h (+41, -7) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+14, -12) (Diff)
/source/blender/draw/intern/draw_manager_profiling.c (+3, -4) (Diff)
/source/blender/draw/intern/draw_manager_text.h (+8, -0) (Diff)
/source/blender/draw/intern/draw_texture_pool.cc (+0, -1) (Diff)
/source/blender/draw/intern/DRW_render.h (+5, -2) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+10, -6) (Diff)
/source/blender/gpu/GPU_texture.h (+8, -0) (Diff)
/source/blender/gpu/GPU_viewport.h (+10, -86) (Diff)
/source/blender/gpu/intern/gpu_viewport.c (+89, -544) (Diff)