Blender Git Loki
Git Commits -> Revision 8bc8a62
Revision 8bc8a62 by Clément Foucault (master) May 14, 2019, 08:57 (GMT) |
DRW: Refactor: Use DRWCall to accumulate per instance attributes This is a big change that cleanup a lot of confusing code. - The instancing/batching data buffer distribution in draw_instance_data.c. - The selection & drawing code in draw_manager_exec.c - Prety much every non-meshes object drawing (object_mode.c). Most of the changes are just renaming but there still a chance a typo might have sneek through. The Batching/Instancing Shading groups are replace by DRWCallBuffers. This is cleaner and conceptually more in line with what a DRWShadingGroup should be. There is still some little confusion in draw_common.c where some function takes shgroup as input and some don't. |
Commit Details:
Full Hash: 8bc8a62c57f91326ab3f8850785dce5452b5d703
Parent Commit: 20d9cd3
Lines Changed: +1011, -1342
15 Modified Paths:
/source/blender/draw/engines/eevee/eevee_lightprobes.c (+7, -7) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+1, -2) (Diff)
/source/blender/draw/intern/draw_armature.c (+99, -105) (Diff)
/source/blender/draw/intern/draw_common.c (+143, -167) (Diff)
/source/blender/draw/intern/draw_common.h (+59, -61) (Diff)
/source/blender/draw/intern/draw_instance_data.c (+131, -212) (Diff)
/source/blender/draw/intern/draw_instance_data.h (+11, -12) (Diff)
/source/blender/draw/intern/draw_manager.c (+0, -1) (Diff)
/source/blender/draw/intern/draw_manager.h (+8, -43) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+110, -222) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+52, -98) (Diff)
/source/blender/draw/intern/DRW_render.h (+35, -40) (Diff)
/source/blender/draw/modes/edit_metaball_mode.c (+5, -5) (Diff)
/source/blender/draw/modes/edit_text_mode.c (+14, -14) (Diff)
/source/blender/draw/modes/object_mode.c (+336, -353) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+1, -2) (Diff)
/source/blender/draw/intern/draw_armature.c (+99, -105) (Diff)
/source/blender/draw/intern/draw_common.c (+143, -167) (Diff)
/source/blender/draw/intern/draw_common.h (+59, -61) (Diff)
/source/blender/draw/intern/draw_instance_data.c (+131, -212) (Diff)
/source/blender/draw/intern/draw_instance_data.h (+11, -12) (Diff)
/source/blender/draw/intern/draw_manager.c (+0, -1) (Diff)
/source/blender/draw/intern/draw_manager.h (+8, -43) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+110, -222) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+52, -98) (Diff)
/source/blender/draw/intern/DRW_render.h (+35, -40) (Diff)
/source/blender/draw/modes/edit_metaball_mode.c (+5, -5) (Diff)
/source/blender/draw/modes/edit_text_mode.c (+14, -14) (Diff)
/source/blender/draw/modes/object_mode.c (+336, -353) (Diff)