Blender Git Loki
Git Commits -> Revision dbd7f36
Revision dbd7f36 by Campbell Barton (master) February 5, 2019, 22:15 (GMT) |
GPU: refactor clipped drawing from DRW into GPU Needed to fix T61196, supporting clipped back-buffer in the 3D view which is done outside the draw module. It was also inconvenient having DRW_shader_* versions of GPU_shader_* API calls. - Clipping distances are now supported as a shader configuration for builtin shaders. - Add shader config argument when accessing builtin shaders. - Move GPU_shader_create_from_arrays() from DRW to GPU. |
Commit Details:
Full Hash: dbd7f36da8ec3ac1c2898aee346beecb86aac8a2
Parent Commit: a245d53
Lines Changed: +406, -516
1 Added Path:
/source/blender/gpu/shaders/gpu_shader_cfg_world_clip_lib.glsl (+25, -0) (View)
3 Deleted Paths:
/source/blender/draw/intern/draw_builtin_shader.c (+0, -116)
/source/blender/draw/intern/draw_builtin_shader.h (+0, -29)
/source/blender/draw/modes/shaders/common_world_clip_lib.glsl (+0, -25)
/source/blender/draw/intern/draw_builtin_shader.h (+0, -29)
/source/blender/draw/modes/shaders/common_world_clip_lib.glsl (+0, -25)
19 Modified Paths:
/source/blender/draw/CMakeLists.txt (+0, -3) (Diff)
/source/blender/draw/engines/basic/basic_engine.c (+4, -4) (Diff)
/source/blender/draw/engines/external/external_engine.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+3, -3) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+3, -3) (Diff)
/source/blender/draw/intern/draw_common.c (+56, -57) (Diff)
/source/blender/draw/intern/draw_common.h (+12, -22) (Diff)
/source/blender/draw/intern/draw_manager.c (+2, -4) (Diff)
/source/blender/draw/intern/draw_manager_shader.c (+2, -69) (Diff)
/source/blender/draw/intern/DRW_render.h (+2, -7) (Diff)
/source/blender/draw/modes/edit_lattice_mode.c (+7, -9) (Diff)
/source/blender/draw/modes/edit_mesh_mode.c (+18, -18) (Diff)
/source/blender/draw/modes/object_mode.c (+103, -104) (Diff)
/source/blender/draw/modes/overlay_mode.c (+9, -9) (Diff)
/source/blender/draw/modes/paint_vertex_mode.c (+9, -9) (Diff)
/source/blender/draw/modes/paint_weight_mode.c (+9, -9) (Diff)
/source/blender/gpu/CMakeLists.txt (+2, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+18, -3) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+121, -12) (Diff)
/source/blender/draw/engines/basic/basic_engine.c (+4, -4) (Diff)
/source/blender/draw/engines/external/external_engine.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+3, -3) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+3, -3) (Diff)
/source/blender/draw/intern/draw_common.c (+56, -57) (Diff)
/source/blender/draw/intern/draw_common.h (+12, -22) (Diff)
/source/blender/draw/intern/draw_manager.c (+2, -4) (Diff)
/source/blender/draw/intern/draw_manager_shader.c (+2, -69) (Diff)
/source/blender/draw/intern/DRW_render.h (+2, -7) (Diff)
/source/blender/draw/modes/edit_lattice_mode.c (+7, -9) (Diff)
/source/blender/draw/modes/edit_mesh_mode.c (+18, -18) (Diff)
/source/blender/draw/modes/object_mode.c (+103, -104) (Diff)
/source/blender/draw/modes/overlay_mode.c (+9, -9) (Diff)
/source/blender/draw/modes/paint_vertex_mode.c (+9, -9) (Diff)
/source/blender/draw/modes/paint_weight_mode.c (+9, -9) (Diff)
/source/blender/gpu/CMakeLists.txt (+2, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+18, -3) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+121, -12) (Diff)