Blender Git Commit Log
Git Commits -> Revision bc34ccf
Revision bc34ccf by Kévin Dietrich (subdivision_work) July 26, 2021, 12:48 (GMT) |
Use our own patch evaluation compute shader. The default one from OpenSubdiv is replaced with a new one, allowing us to better control what is needed, but also drastically reduce memory usage by not having to use temporary buffers when building the position and normals buffers as we directly write the results from the evaluation to the right buffers. |
Commit Details:
Full Hash: bc34ccff0b5edee0335831aa4789fd3d46b3b798
Parent Commit: ae24e92
Lines Changed: +1011, -574
1 Added Path:
/source/blender/draw/intern/shaders/common_subdiv_patch_evaluation_comp.glsl (+335, -0) (View)
3 Deleted Paths:
/source/blender/draw/intern/shaders/common_subdiv_buffer_build_comp.glsl (+0, -82)
/source/blender/draw/intern/shaders/common_subdiv_face_dots_comp.glsl (+0, -52)
/source/blender/draw/intern/shaders/common_subdiv_patch_handles_comp.glsl (+0, -152)
/source/blender/draw/intern/shaders/common_subdiv_face_dots_comp.glsl (+0, -52)
/source/blender/draw/intern/shaders/common_subdiv_patch_handles_comp.glsl (+0, -152)
11 Modified Paths:
/intern/opensubdiv/internal/evaluator/evaluator_capi.cc (+101, -0) (Diff)
/intern/opensubdiv/internal/evaluator/evaluator_impl.cc (+110, -0) (Diff)
/intern/opensubdiv/internal/evaluator/evaluator_impl.h (+19, -0) (Diff)
/intern/opensubdiv/opensubdiv_evaluator_capi.h (+32, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -3) (Diff)
/source/blender/draw/intern/draw_cache_impl_subdivision.c (+395, -284) (Diff)
/source/blender/gpu/GPU_vertex_buffer.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_vertex_buffer.cc (+5, -0) (Diff)
/source/blender/gpu/intern/gpu_vertex_buffer_private.hh (+2, -1) (Diff)
/source/blender/gpu/opengl/gl_vertex_buffer.cc (+8, -0) (Diff)
/source/blender/gpu/opengl/gl_vertex_buffer.hh (+2, -0) (Diff)
/intern/opensubdiv/internal/evaluator/evaluator_impl.cc (+110, -0) (Diff)
/intern/opensubdiv/internal/evaluator/evaluator_impl.h (+19, -0) (Diff)
/intern/opensubdiv/opensubdiv_evaluator_capi.h (+32, -0) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -3) (Diff)
/source/blender/draw/intern/draw_cache_impl_subdivision.c (+395, -284) (Diff)
/source/blender/gpu/GPU_vertex_buffer.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_vertex_buffer.cc (+5, -0) (Diff)
/source/blender/gpu/intern/gpu_vertex_buffer_private.hh (+2, -1) (Diff)
/source/blender/gpu/opengl/gl_vertex_buffer.cc (+8, -0) (Diff)
/source/blender/gpu/opengl/gl_vertex_buffer.hh (+2, -0) (Diff)