|
Blender V4.3
|
#include <memory>#include "BLI_vector.hh"#include "GPU_capabilities.hh"#include "GPU_viewport.hh"#include "DRW_gpu_wrapper.hh"#include "DRW_render.hh"#include "draw_instance_data.hh"#include "draw_manager_text.hh"#include "draw_manager.hh"#include "draw_manager_c.hh"#include "draw_view_data.hh"Go to the source code of this file.
Classes | |
| struct | DRWViewData |
|
static |
Definition at line 155 of file draw_view_data.cc.
References DefaultTextureList::color, DefaultFramebufferList::color_only_fb, DefaultTextureList::color_overlay, DefaultFramebufferList::default_fb, DefaultTextureList::depth, DefaultTextureList::depth_in_front, DefaultFramebufferList::depth_only_fb, DRWViewData::dfbl, draw_viewport_engines_data_clear(), DRWViewData::dtxl, DRWViewData::engines, DRWViewData::from_viewport, GPU_FRAMEBUFFER_FREE_SAFE, GPU_TEXTURE_FREE_SAFE, DefaultFramebufferList::in_front_fb, DefaultFramebufferList::overlay_fb, and DefaultFramebufferList::overlay_only_fb.
Referenced by DRW_view_data_free(), and DRW_view_data_texture_list_size_validate().
|
static |
Definition at line 123 of file draw_view_data.cc.
References BLI_assert, DRW_text_cache_destroy(), DrawEngineDataSize::fbl_len, GPU_FRAMEBUFFER_FREE_SAFE, GPU_TEXTURE_FREE_SAFE, DrawEngineType::instance_free, MEM_SAFE_FREE, DrawEngineDataSize::stl_len, DrawEngineDataSize::txl_len, and DrawEngineType::vedata_size.
Referenced by draw_view_data_clear(), and DRW_view_data_free_unused().
| void DRW_manager_begin_sync | ( | ) |
Definition at line 292 of file draw_view_data.cc.
References DST, DRWViewData::manager, and DRWManager::view_data_active.
Referenced by drw_engines_cache_init().
| void DRW_manager_end_sync | ( | ) |
Definition at line 300 of file draw_view_data.cc.
References DST, DRWViewData::manager, and DRWManager::view_data_active.
Referenced by drw_engines_cache_finish().
| draw::Manager * DRW_manager_get | ( | ) |
Definition at line 280 of file draw_view_data.cc.
References BLI_assert, DST, DRWViewData::manager, and DRWManager::view_data_active.
Referenced by blender::eevee::Film::cryptomatte_sort(), blender::eevee::Film::display(), blender::eevee::Instance::init(), OVERLAY_next_cache_populate(), OVERLAY_next_draw_scene(), SELECT_next_cache_populate(), SELECT_next_draw_scene(), workbench_cache_populate(), workbench_draw_scene(), and workbench_render_to_image().
| draw::ObjectRef DRW_object_ref_get | ( | Object * | object | ) |
Definition at line 286 of file draw_view_data.cc.
References BLI_assert, DST, DRWManager::dupli_parent, DRWManager::dupli_source, DRWViewData::manager, and DRWManager::view_data_active.
Referenced by blender::eevee::Instance::object_sync(), and blender::eevee::step_object_sync_render().
| double * DRW_view_data_cache_time_get | ( | DRWViewData * | view_data | ) |
Definition at line 249 of file draw_view_data.cc.
References DRWViewData::cache_time.
Referenced by DRW_draw_render_loop_2d_ex(), DRW_draw_render_loop_ex(), and DRW_stats_draw().
| DRWViewData * DRW_view_data_create | ( | ListBase * | engine_types | ) |
Creates a view data with all possible engines type for this view.
engine_types contains DRWRegisteredDrawEngine.
Definition at line 63 of file draw_view_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_listbase_count(), ViewportEngineData::engine_type, DRWViewData::engines, LISTBASE_FOREACH, and blender::Vector< T, InlineBufferCapacity, Allocator >::reserve().
Referenced by DRW_viewport_data_create().
| DefaultFramebufferList * DRW_view_data_default_framebuffer_list_get | ( | DRWViewData * | view_data | ) |
Definition at line 254 of file draw_view_data.cc.
References DRWViewData::dfbl.
Referenced by drw_manager_init(), and DRW_viewport_framebuffer_list_get().
| void DRW_view_data_default_lists_from_viewport | ( | DRWViewData * | view_data, |
| GPUViewport * | viewport ) |
Definition at line 84 of file draw_view_data.cc.
References DefaultTextureList::color, DefaultFramebufferList::color_only_fb, DefaultTextureList::color_overlay, DefaultFramebufferList::default_fb, DefaultTextureList::depth, DefaultFramebufferList::depth_only_fb, DRWViewData::dfbl, DRWViewData::dtxl, DRWViewData::from_viewport, GPU_framebuffer_ensure_config, GPU_viewport_active_view_get(), GPU_viewport_color_texture(), GPU_viewport_depth_texture(), GPU_viewport_overlay_texture(), DefaultFramebufferList::overlay_fb, and DefaultFramebufferList::overlay_only_fb.
Referenced by drw_manager_init().
| DefaultTextureList * DRW_view_data_default_texture_list_get | ( | DRWViewData * | view_data | ) |
Definition at line 259 of file draw_view_data.cc.
References DRWViewData::dtxl.
Referenced by DRW_viewport_texture_list_get().
| void DRW_view_data_enabled_engine_iter_begin | ( | DRWEngineIterator * | iterator, |
| DRWViewData * | view_data ) |
| ViewportEngineData * DRW_view_data_enabled_engine_iter_step | ( | DRWEngineIterator * | iterator | ) |
Definition at line 271 of file draw_view_data.cc.
References DRWEngineIterator::end, DRWEngineIterator::engines, and DRWEngineIterator::id.
| ViewportEngineData * DRW_view_data_engine_data_get_ensure | ( | DRWViewData * | view_data, |
| DrawEngineType * | engine_type ) |
Definition at line 190 of file draw_view_data.cc.
References DRWViewData::engines, DrawEngineDataSize::fbl_len, MEM_calloc_arrayN, DrawEngineDataSize::psl_len, DrawEngineDataSize::stl_len, DrawEngineDataSize::txl_len, and DrawEngineType::vedata_size.
Referenced by DRW_custom_pipeline(), DRW_custom_pipeline_begin(), DRW_render_gpencil_to_image(), DRW_render_to_image(), and DRW_view_data_use_engine().
| void DRW_view_data_engines_view_update | ( | DRWViewData * | view_data | ) |
Definition at line 239 of file draw_view_data.cc.
References DRWViewData::engines, and DrawEngineType::view_update.
Referenced by DRW_notify_view_update(), and drw_notify_view_update_offscreen().
| void DRW_view_data_free | ( | DRWViewData * | view_data | ) |
Definition at line 176 of file draw_view_data.cc.
References draw_view_data_clear().
Referenced by DRW_viewport_data_free().
| void DRW_view_data_free_unused | ( | DRWViewData * | view_data | ) |
Definition at line 230 of file draw_view_data.cc.
References draw_viewport_engines_data_clear(), DRWViewData::enabled_engines, DRWViewData::engines, and blender::Vector< T, InlineBufferCapacity, Allocator >::first_index_of_try().
Referenced by drw_engines_data_validate().
| draw::TextureFromPool & DRW_view_data_pass_texture_get | ( | DRWViewData * | view_data, |
| const char * | pass_name ) |
Definition at line 77 of file draw_view_data.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), and DRWViewData::viewport_compositor_passes.
Referenced by DRW_viewport_pass_texture_get().
| void DRW_view_data_reset | ( | DRWViewData * | view_data | ) |
Definition at line 218 of file draw_view_data.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), DRWViewData::enabled_engines, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), and DRWViewData::viewport_compositor_passes.
Referenced by drw_engines_disable().
| void DRW_view_data_texture_list_size_validate | ( | DRWViewData * | view_data, |
| const int | size[2] ) |
Definition at line 182 of file draw_view_data.cc.
References copy_v2_v2_int(), draw_view_data_clear(), equals_v2v2_int(), and DRWViewData::texture_list_size.
Referenced by drw_manager_init().
| void DRW_view_data_use_engine | ( | DRWViewData * | view_data, |
| DrawEngineType * | engine_type ) |
Definition at line 212 of file draw_view_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), DRW_view_data_engine_data_get_ensure(), and DRWViewData::enabled_engines.
Referenced by use_drw_engine().