|
Blender V5.0
|
#include "BLI_string_ref.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::draw |
Typedefs | |
| using | DRW_SelectPassFn = bool (*)(eDRWSelectStage stage, void *user_data) |
| using | DRW_ObjectFilterFn = bool (*)(Object *ob, void *user_data) |
Enumerations | |
| enum | eDRWSelectStage { DRW_SELECT_PASS_PRE = 1 , DRW_SELECT_PASS_POST } |
| using DRW_ObjectFilterFn = bool (*)(Object *ob, void *user_data) |
Definition at line 51 of file DRW_engine.hh.
| using DRW_SelectPassFn = bool (*)(eDRWSelectStage stage, void *user_data) |
Definition at line 50 of file DRW_engine.hh.
| enum eDRWSelectStage |
| Enumerator | |
|---|---|
| DRW_SELECT_PASS_PRE | |
| DRW_SELECT_PASS_POST | |
Definition at line 46 of file DRW_engine.hh.
| void DRW_blender_gpu_render_context_disable | ( | void * | re_gpu_context | ) |
Definition at line 280 of file draw_gpu_context.cc.
References GPU_context_active_set(), and GPU_flush().
Referenced by DRW_render_context_disable().
| void DRW_blender_gpu_render_context_enable | ( | void * | re_gpu_context | ) |
Definition at line 272 of file draw_gpu_context.cc.
References BLI_assert, BLI_thread_is_main(), and GPU_context_active_set().
Referenced by DRW_render_context_enable().
| void DRW_cache_free_old_batches | ( | Main * | bmain | ) |
For garbage collection.
Definition at line 927 of file draw_context.cc.
References BKE_scene_get_depsgraph(), BLI_time_now_seconds(), DEG_OBJECT_ITER_BEGIN, DEG_OBJECT_ITER_END, DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS, DEGObjectIterSettings::depsgraph, depsgraph, blender::draw::DRW_batch_cache_free_old(), ListBase::first, DEGObjectIterSettings::flags, Scene::id, LISTBASE_FOREACH, ID::next, Main::scenes, U, and Scene::view_layers.
Referenced by view3d_main_region_draw().
| void DRW_draw_depth_loop | ( | Depsgraph * | depsgraph, |
| ARegion * | region, | ||
| View3D * | v3d, | ||
| GPUViewport * | viewport, | ||
| const bool | use_gpencil, | ||
| const bool | use_only_selected, | ||
| const bool | use_only_active_object ) |
Used by auto-depth and other depth queries feature.
Definition at line 2031 of file draw_context.cc.
References DRWContext::acquire_data(), BASE_SELECTED, BKE_object_is_visible_in_viewport(), depsgraph, DRWContext::DEPTH, DRWContext::DEPTH_ACTIVE_OBJECT, drw_engines_cache_populate(), DRWContext::enable_engines(), DRWContext::engines_draw_scene(), DRWContext::engines_init_and_sync(), blender::draw::foreach_obref_in_scene(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_framebuffer_bind(), GPU_framebuffer_clear_depth(), GPU_framebuffer_ensure_config, GPU_framebuffer_free(), GPU_framebuffer_restore(), GPU_viewport_depth_texture(), DRWContext::obact, and DRWContext::release_data().
Referenced by ED_view3d_depth_override().
| bool DRW_draw_in_progress | ( | ) |
Query that drawing is in progress (use to prevent nested draw calls).
Definition at line 2145 of file draw_context.cc.
References DRWContext::is_active().
Referenced by ED_view3d_draw_offscreen_check_nested().
| void DRW_draw_region_engine_info | ( | int | xoffset, |
| int * | yoffset, | ||
| int | line_height ) |
Draw render engine info.
Definition at line 1049 of file draw_context.cc.
References BLF_draw_default(), BLI_strchr_or_end(), drw_get(), DRWViewData::foreach_enabled_engine(), IFACE_, DrawEngine::info, and DRWContext::view_data_active.
Referenced by view3d_draw_region_info().
| void DRW_draw_render_loop_offscreen | ( | Depsgraph * | depsgraph, |
| RenderEngineType * | engine_type, | ||
| ARegion * | region, | ||
| View3D * | v3d, | ||
| bool | is_image_render, | ||
| bool | draw_background, | ||
| bool | do_color_management, | ||
| GPUOffScreen * | ofs, | ||
| GPUViewport * | viewport ) |
| viewport | can be NULL, in this case we create one. |
Definition at line 1541 of file draw_context.cc.
References DRWContext::acquire_data(), BLI_assert, depsgraph, draw_background(), DRWContext::draw_background, drw_draw_render_loop_3d(), ELEM, View3D::flag, View3DShading::flag, View3D::flag2, GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_BLEND_NONE, GPU_clear_color(), GPU_framebuffer_restore(), GPU_matrix_identity_projection_set(), GPU_matrix_identity_set(), GPU_offscreen_bind(), GPU_viewport_bind_from_offscreen(), GPU_viewport_create(), GPU_viewport_free(), GPU_viewport_unbind_from_offscreen(), OB_MATERIAL, OB_RENDER, OB_SOLID, OB_WIRE, DRWContext::options, DRWContext::release_data(), View3D::shading, View3DShading::type, UNUSED_VARS_NDEBUG, V3D_HIDE_OVERLAYS, V3D_SHADING_SCENE_WORLD, V3D_SHADING_SCENE_WORLD_RENDER, V3D_XR_SESSION_SURFACE, DRWContext::VIEWPORT_RENDER, and DRWContext::VIEWPORT_XR.
Referenced by ED_view3d_draw_offscreen().
Definition at line 2092 of file draw_context.cc.
References DRWContext::acquire_data(), BKE_object_is_visible_in_viewport(), depsgraph, drw_engines_cache_populate(), DRW_object_is_in_edit_mode(), DRW_select_engine_context_get(), DRWContext::enable_engines(), DRWContext::engines_draw_scene(), DRWContext::engines_init_and_sync(), blender::draw::foreach_obref_in_scene(), SELECTID_Context::max_index_drawn_len, OB_MESH, SELECTID_Context::objects, DRWContext::release_data(), RETOPOLOGY_ENABLED, RGN_TYPE_WINDOW, DRWContext::SELECT_EDIT_MESH, SPACE_VIEW3D, UI_SetTheme(), WM_draw_region_get_viewport(), and XRAY_ENABLED.
Referenced by DRW_select_buffer_read().
| void DRW_draw_select_loop | ( | Depsgraph * | depsgraph, |
| ARegion * | region, | ||
| View3D * | v3d, | ||
| bool | use_obedit_skip, | ||
| bool | draw_surface, | ||
| bool | use_nearest, | ||
| bool | do_material_sub_selection, | ||
| const rcti * | rect, | ||
| DRW_SelectPassFn | select_pass_fn, | ||
| void * | select_pass_user_data, | ||
| DRW_ObjectFilterFn | object_filter_fn, | ||
| void * | object_filter_user_data ) |
Object mode select-loop.
Definition at line 1862 of file draw_context.cc.
References DRWContext::acquire_data(), BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT, BASE_FROM_DUPLI, BASE_SELECTABLE, BKE_modifiers_is_deformed_by_armature(), BKE_object_is_visible_in_viewport(), BKE_view_layer_active_object_get(), BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_original(), depsgraph, DefaultTextureList::depth, draw_select_framebuffer_depth_only_setup(), drw_callbacks_pre_scene(), DRW_context_get(), drw_engines_cache_populate(), DRW_gpencil_engine_needed_viewport(), DRW_SELECT_PASS_POST, DRW_SELECT_PASS_PRE, DRWContext::enable_engines(), DRWContext::engines_data_validate(), DRWContext::engines_draw_scene(), DRWContext::engines_init_and_sync(), View3DOverlay::flag, View3D::flag2, FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, blender::draw::foreach_obref_in_scene(), g_select_buffer, GPU_framebuffer_bind(), GPU_framebuffer_clear_depth(), GPU_framebuffer_restore(), Object::mode, nullptr, OB_ARMATURE, OB_MBALL, OB_MODE_POSE, OBEDIT_FROM_OBACT, ToolSettings::object_flag, DRWContext::object_pose, View3D::object_type_exclude_select, OBPOSE_FROM_OBACT, OBWEIGHTPAINT_FROM_OBACT, View3D::overlay, DRWContext::release_data(), SCE_OBJECT_MODE_LOCK, DRWContext::SELECT_OBJECT, DRWContext::SELECT_OBJECT_MATERIAL, Scene::toolsettings, Object::type, V3D_HIDE_OVERLAYS, V3D_OVERLAY_BONE_SELECT, and DRWContext::viewport_texture_list_get().
Referenced by view3d_gpu_select_ex().
| void DRW_draw_view | ( | const bContext * | C | ) |
Everything starts here. This function takes care of calling all cache and rendering functions for each relevant engine / mode engine.
Definition at line 1516 of file draw_context.cc.
References DRWContext::acquire_data(), RenderData::alphamode, C, CTX_data_expect_evaluated_depsgraph(), CTX_wm_region(), DEG_get_evaluated_scene(), depsgraph, DRWContext::draw_background, drw_draw_render_loop_2d(), drw_draw_render_loop_3d(), ED_view3d_engine_type(), OB_RENDER, DRWContext::options, Scene::r, R_ADDSKY, DRWContext::release_data(), View3D::shading, View3DShading::type, DRWContext::v3d, DRWContext::VIEWPORT, and WM_draw_region_get_bound_viewport().
Referenced by blender::ed::space_node::draw_nodespace_back_pix(), image_main_region_draw(), and view3d_draw_view().
| void DRW_engine_external_free | ( | RegionView3D * | rv3d | ) |
Definition at line 496 of file external_engine.cc.
References DRW_gpu_context_disable_ex(), DRW_gpu_context_enable_ex(), DRW_gpu_context_is_enabled(), RE_FreeViewRender(), and RegionView3D::view_render.
Referenced by ED_view3d_stop_render_preview(), and view3d_main_region_free().
| void DRW_engines_free | ( | ) |
Definition at line 2228 of file draw_context.cc.
References blender::draw::edit_select::Engine::free_static(), blender::draw::gpencil::Engine::free_static(), blender::draw::overlay::Engine::free_static(), blender::eevee::Engine::free_static(), blender::image_engine::Engine::free_static(), and blender::workbench::Engine::free_static().
Referenced by RE_engines_exit().
| void DRW_engines_register | ( | ) |
Definition at line 2222 of file draw_context.cc.
References DRW_engine_viewport_eevee_type, DRW_engine_viewport_workbench_type, and RE_engines_register().
Referenced by RE_engines_init().
| bool DRW_gpencil_engine_needed_viewport | ( | Depsgraph * | depsgraph, |
| View3D * | v3d ) |
This function only does following things to make quick checks for whether Grease Pencil drawing is needed:
Definition at line 1173 of file draw_context.cc.
References depsgraph, gpencil_any_exists(), and gpencil_object_is_excluded().
Referenced by drw_draw_render_loop_3d(), and DRW_draw_select_loop().
| void DRW_gpu_context_activate | ( | bool | drw_state | ) |
Definition at line 436 of file draw_gpu_context.cc.
References BLI_thread_is_main(), GPU_context_active_set(), viewport_context, WM_system_gpu_context_activate(), and wm_window_reset_drawable().
Referenced by RE_engine_gpu_context_create(), RE_engine_gpu_context_destroy(), and RE_engine_gpu_context_disable().
| void DRW_gpu_context_create | ( | ) |
Definition at line 166 of file draw_gpu_context.cc.
References BLI_assert, DRW_mutexes_init(), preview_context, and viewport_context.
Referenced by WM_init_gpu().
| void DRW_gpu_context_destroy | ( | ) |
Definition at line 178 of file draw_gpu_context.cc.
References BLI_assert, BLI_thread_is_main(), DRW_mutexes_exit(), preview_context, and viewport_context.
Referenced by WM_exit_ex().
| void DRW_gpu_context_disable | ( | ) |
Definition at line 252 of file draw_gpu_context.cc.
References DRW_gpu_context_disable_ex().
Referenced by DRW_render_context_disable(), DRW_select_buffer_read(), ED_view3d_draw_offscreen_imbuf(), engine_depsgraph_free(), blender::render::Compositor::execute(), GPU_viewport_unbind(), RE_engines_exit(), screen_opengl_render_doit(), screen_opengl_render_end(), screen_opengl_render_init(), view3d_gpu_select_ex(), and blender::render::Compositor::~Compositor().
| void DRW_gpu_context_disable_ex | ( | bool | restore | ) |
Definition at line 204 of file draw_gpu_context.cc.
References viewport_context.
Referenced by DRW_engine_external_free(), DRW_gpu_context_disable(), WM_exit_ex(), and WM_init_gpu().
| void DRW_gpu_context_enable | ( | ) |
Binds the draw GPU context to the active thread. In background mode, this will create the draw GPU context on first call.
Definition at line 228 of file draw_gpu_context.cc.
References DRW_gpu_context_enable_ex(), G, viewport_context, and WM_init_gpu().
Referenced by DRW_render_context_enable(), DRW_select_buffer_read(), ED_view3d_draw_offscreen_imbuf(), engine_depsgraph_free(), blender::render::Compositor::execute(), GPU_viewport_bind(), screen_opengl_render_doit(), screen_opengl_render_end(), screen_opengl_render_init(), view3d_gpu_select_ex(), and blender::render::Compositor::~Compositor().
| void DRW_gpu_context_enable_ex | ( | bool | restore | ) |
Never use this. Only for closing blender.
Definition at line 196 of file draw_gpu_context.cc.
References viewport_context.
Referenced by DRW_engine_external_free(), DRW_gpu_context_enable(), DRW_gpu_context_try_enable(), and WM_exit_ex().
| bool DRW_gpu_context_is_enabled | ( | ) |
Returns true if the DRW_gpu_context is enabled on the calling thread.
Definition at line 247 of file draw_gpu_context.cc.
References viewport_context.
Referenced by DRW_engine_external_free().
| bool DRW_gpu_context_release | ( | ) |
Definition at line 417 of file draw_gpu_context.cc.
References BLI_thread_is_main(), GPU_context_active_get(), GPU_context_active_set(), viewport_context, and WM_system_gpu_context_release().
Referenced by RE_engine_gpu_context_create(), RE_engine_gpu_context_destroy(), and RE_engine_gpu_context_enable().
| bool DRW_gpu_context_try_enable | ( | ) |
Tries to bind the draw GPU context to the active thread. Returns true on success, false if the draw GPU context does not exists.
Definition at line 238 of file draw_gpu_context.cc.
References DRW_gpu_context_enable_ex(), and viewport_context.
Referenced by RE_engines_exit().
| void DRW_lock_end | ( | ) |
Definition at line 53 of file draw_gpu_context.cc.
References BLI_ticket_mutex_unlock(), and draw_mutex.
Referenced by ContextShared::disable(), and DRW_system_gpu_render_context_disable().
| void DRW_lock_start | ( | ) |
Definition at line 46 of file draw_gpu_context.cc.
References BLI_assert, BLI_ticket_mutex_lock_check_recursive(), draw_mutex, and UNUSED_VARS_NDEBUG.
Referenced by DRW_system_gpu_render_context_enable(), and ContextShared::enable().
| void DRW_module_exit | ( | ) |
Definition at line 2278 of file draw_context.cc.
References DRW_shaders_free(), g_select_buffer, GPU_FRAMEBUFFER_FREE_SAFE, and GPU_TEXTURE_FREE_SAFE.
Referenced by RE_engines_exit().
| void DRW_module_init | ( | ) |
Definition at line 2247 of file draw_context.cc.
References BKE_curve_batch_cache_dirty_tag_cb, BKE_curve_batch_cache_free_cb, BKE_curves_batch_cache_dirty_tag_cb, BKE_curves_batch_cache_free_cb, BKE_grease_pencil_batch_cache_dirty_tag_cb, BKE_grease_pencil_batch_cache_free_cb, BKE_lattice_batch_cache_dirty_tag_cb, BKE_lattice_batch_cache_free_cb, BKE_mesh_batch_cache_dirty_tag_cb, BKE_mesh_batch_cache_free_cb, BKE_particle_batch_cache_dirty_tag_cb, BKE_particle_batch_cache_free_cb, BKE_pointcloud_batch_cache_dirty_tag_cb, BKE_pointcloud_batch_cache_free_cb, BKE_subsurf_modifier_free_gpu_cache_cb, BKE_volume_batch_cache_dirty_tag_cb, BKE_volume_batch_cache_free_cb, blender::draw::DRW_curve_batch_cache_dirty_tag(), blender::draw::DRW_curve_batch_cache_free(), blender::draw::DRW_curves_batch_cache_dirty_tag(), blender::draw::DRW_curves_batch_cache_free(), blender::draw::DRW_grease_pencil_batch_cache_dirty_tag(), blender::draw::DRW_grease_pencil_batch_cache_free(), blender::draw::DRW_lattice_batch_cache_dirty_tag(), blender::draw::DRW_lattice_batch_cache_free(), blender::draw::DRW_mesh_batch_cache_dirty_tag(), blender::draw::DRW_mesh_batch_cache_free(), blender::draw::DRW_particle_batch_cache_dirty_tag(), blender::draw::DRW_particle_batch_cache_free(), blender::draw::DRW_pointcloud_batch_cache_dirty_tag(), blender::draw::DRW_pointcloud_batch_cache_free(), blender::draw::DRW_subdiv_cache_free(), blender::draw::DRW_volume_batch_cache_dirty_tag(), and blender::draw::DRW_volume_batch_cache_free().
Referenced by RE_engines_init().
| void DRW_mutexes_exit | ( | ) |
Definition at line 40 of file draw_gpu_context.cc.
References BLI_ticket_mutex_free(), draw_mutex, and submission_mutex.
Referenced by DRW_gpu_context_destroy().
| void DRW_mutexes_init | ( | ) |
Definition at line 34 of file draw_gpu_context.cc.
References BLI_ticket_mutex_alloc(), draw_mutex, and submission_mutex.
Referenced by DRW_gpu_context_create().
| bool DRW_render_check_grease_pencil | ( | Depsgraph * | depsgraph | ) |
Helper to check if exit object type to render.
Definition at line 1609 of file draw_context.cc.
References BKE_object_visibility(), DAG_EVAL_RENDER, DEG_OBJECT_ITER_BEGIN, DEG_OBJECT_ITER_END, DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS, DEGObjectIterSettings::depsgraph, depsgraph, DEGObjectIterSettings::flags, gpencil_any_exists(), OB_GREASE_PENCIL, and OB_VISIBLE_SELF.
Referenced by DRW_render_gpencil(), and engine_depsgraph_init().
| void DRW_render_context_disable | ( | Render * | render | ) |
Definition at line 314 of file draw_gpu_context.cc.
References DRW_blender_gpu_render_context_disable(), DRW_gpu_context_disable(), drw_gpu_preview_context_disable(), DRW_system_gpu_render_context_disable(), GPU_context_main_unlock(), GPU_render_end(), GPU_use_main_context_workaround(), RE_blender_gpu_context_ensure(), and RE_system_gpu_context_get().
Referenced by DRW_render_gpencil(), engine_depsgraph_free(), engine_depsgraph_init(), engine_render_view_layer(), RE_engine_gpu_context_disable(), blender::eevee::Instance::render_frame(), and blender::render::Compositor::~Compositor().
| void DRW_render_context_enable | ( | Render * | render | ) |
Definition at line 286 of file draw_gpu_context.cc.
References DRW_blender_gpu_render_context_enable(), DRW_gpu_context_enable(), drw_gpu_preview_context_enable(), DRW_system_gpu_render_context_enable(), G, GPU_context_main_lock(), GPU_render_begin(), GPU_use_main_context_workaround(), RE_blender_gpu_context_ensure(), RE_system_gpu_context_get(), viewport_context, and WM_init_gpu().
Referenced by DRW_render_gpencil(), engine_depsgraph_free(), engine_depsgraph_init(), engine_render_view_layer(), RE_engine_gpu_context_enable(), blender::eevee::Instance::render_frame(), and blender::render::Compositor::~Compositor().
| void DRW_render_gpencil | ( | RenderEngine * | engine, |
| Depsgraph * | depsgraph ) |
Render grease pencil on top of other render engine output. This function creates a DRWContext.
Definition at line 1630 of file draw_context.cc.
References DRWContext::acquire_data(), RenderData::alphamode, BLI_assert, BLI_rcti_init(), BLI_rcti_is_empty(), DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), depsgraph, DRWContext::draw_background, DRW_render_check_grease_pencil(), DRW_render_context_disable(), DRW_render_context_enable(), ListBase::first, blender::gpu::TexturePool::get(), GPU_DEPTH_NONE, GPU_depth_test(), GPU_framebuffer_restore(), ViewLayer::name, RenderView::next, DRWContext::options, Scene::r, R_ADDSKY, RenderEngine::re, RE_engine_get_result(), RE_GetRenderLayer(), RE_GetViewPlane(), RE_SetActiveRenderView(), DRWContext::release_data(), DRWContext::RENDER, blender::draw::gpencil::Engine::render_to_image(), blender::gpu::TexturePool::reset(), RenderEngine::resolution_x, RenderEngine::resolution_y, blender::draw::command::StateSet::set(), DRWContext::size, and RenderResult::views.
Referenced by engine_render_view_layer().
| void DRW_submission_end | ( | ) |
Definition at line 66 of file draw_gpu_context.cc.
References BLI_ticket_mutex_unlock(), GPU_render_end(), and submission_mutex.
Referenced by blender::draw::compositor_engine::Instance::draw(), blender::draw::edit_select::Instance::draw(), blender::draw::gpencil::Instance::draw(), blender::draw::overlay::Instance::draw(), blender::image_engine::Instance::draw(), blender::workbench::Instance::draw(), drw_callbacks_post_scene(), drw_callbacks_post_scene_2D(), drw_callbacks_pre_scene(), drw_callbacks_pre_scene_2D(), blender::draw::DRW_curves_update(), blender::draw::Manager::end_sync(), blender::eevee::VelocityModule::geometry_steps_fill(), blender::eevee::Instance::light_bake_irradiance(), and workbench_render_to_image().
| void DRW_submission_start | ( | ) |
Definition at line 58 of file draw_gpu_context.cc.
References BLI_assert, BLI_ticket_mutex_lock_check_recursive(), GPU_render_begin(), submission_mutex, and UNUSED_VARS_NDEBUG.
Referenced by blender::draw::compositor_engine::Instance::draw(), blender::draw::edit_select::Instance::draw(), blender::draw::gpencil::Instance::draw(), blender::draw::overlay::Instance::draw(), blender::image_engine::Instance::draw(), blender::workbench::Instance::draw(), drw_callbacks_post_scene(), drw_callbacks_post_scene_2D(), drw_callbacks_pre_scene(), drw_callbacks_pre_scene_2D(), blender::draw::DRW_curves_update(), blender::draw::Manager::end_sync(), blender::eevee::VelocityModule::geometry_steps_fill(), blender::eevee::Instance::light_bake_irradiance(), and workbench_render_to_image().
| void DRW_system_gpu_render_context_disable | ( | void * | re_system_gpu_context | ) |
Definition at line 266 of file draw_gpu_context.cc.
References DRW_lock_end(), and WM_system_gpu_context_release().
Referenced by DRW_render_context_disable().
| void DRW_system_gpu_render_context_enable | ( | void * | re_system_gpu_context | ) |
Definition at line 257 of file draw_gpu_context.cc.
References BLI_assert, BLI_thread_is_main(), DRW_lock_start(), and WM_system_gpu_context_activate().
Referenced by DRW_render_context_enable().
| DRWData * DRW_viewport_data_create | ( | ) |
Definition at line 395 of file draw_context.cc.
References DRWData::default_view, i, MEM_callocN(), and DRWData::view_data.
Referenced by DRWContext::acquire_data(), and drw_viewport_data_ensure().
| void DRW_viewport_data_free | ( | DRWData * | drw_data | ) |
Definition at line 427 of file draw_context.cc.
References DRWData::curves_module, DRWData::default_view, blender::draw::DRW_curves_module_free(), blender::draw::DRW_pointcloud_module_free(), blender::draw::DRW_volume_module_free(), i, MEM_freeN(), DRWData::pointcloud_module, DRWData::view_data, and DRWData::volume_module.
Referenced by GPU_viewport_free(), and DRWContext::release_data().