|
Blender V4.5
|
#include <draw_view_data.hh>
Public Member Functions | |
| DRWViewData () | |
| ~DRWViewData () | |
| void | texture_list_size_validate (const blender::int2 &size) |
| template<typename CallbackT> | |
| void | foreach_engine (CallbackT callback) |
| template<typename CallbackT> | |
| void | foreach_enabled_engine (CallbackT callback) |
Definition at line 59 of file draw_view_data.hh.
| DRWViewData::DRWViewData | ( | ) |
Definition at line 28 of file draw_view_data.cc.
References manager.
| DRWViewData::~DRWViewData | ( | ) |
Definition at line 33 of file draw_view_data.cc.
References manager.
|
inline |
Definition at line 126 of file draw_view_data.hh.
References foreach_engine(), and ptr.
Referenced by DRW_draw_region_engine_info(), drw_engines_cache_populate(), drw_engines_draw_text(), and DRW_view_data_reset().
|
inline |
Grease pencil. Merge its output to the render result frame-buffer.
GPU compositor. Processes render result and output to the render result frame-buffer.
Overlays. Draw on a separate overlay frame-buffer. Can read render result.
Selection. Are always enabled alone and have no interaction with other engines.
Definition at line 101 of file draw_view_data.hh.
References compositor, edit_select, eevee, external, grease_pencil, image, object_select, overlay, and workbench.
Referenced by DRW_view_data_free_unused(), and foreach_enabled_engine().
| void DRWViewData::texture_list_size_validate | ( | const blender::int2 & | size | ) |
Definition at line 105 of file draw_view_data.cc.
References copy_v2_v2_int(), size(), and texture_list_size.
| blender::draw::compositor_engine::Engine DRWViewData::compositor |
Definition at line 81 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| DefaultFramebufferList DRWViewData::dfbl = {} |
Definition at line 61 of file draw_view_data.hh.
Referenced by DRW_view_data_default_lists_from_viewport().
| DefaultTextureList DRWViewData::dtxl = {} |
Definition at line 62 of file draw_view_data.hh.
Referenced by DRW_view_data_default_lists_from_viewport().
| blender::draw::edit_select::Engine DRWViewData::edit_select |
Definition at line 77 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| blender::eevee::Engine DRWViewData::eevee |
Engines running for this viewport. nullptr if not enabled.
Definition at line 70 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| blender::draw::external::Engine DRWViewData::external |
Definition at line 72 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| bool DRWViewData::from_viewport = false |
True indicates the textures inside dtxl are from the viewport and should not be freed.
Definition at line 64 of file draw_view_data.hh.
Referenced by DRW_view_data_default_lists_from_viewport().
| blender::draw::gpencil::Engine DRWViewData::grease_pencil |
Definition at line 74 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| blender::image_engine::Engine DRWViewData::image |
Definition at line 73 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| blender::draw::Manager* DRWViewData::manager = nullptr |
New per view/viewport manager. Null if not supported by current hardware.
Definition at line 93 of file draw_view_data.hh.
Referenced by DRW_manager_get(), DRWViewData(), and ~DRWViewData().
| blender::draw::select::Engine DRWViewData::object_select |
Definition at line 76 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| blender::draw::overlay::Engine DRWViewData::overlay |
Definition at line 75 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().
| blender::int2 DRWViewData::texture_list_size = {0, 0} |
Common size for texture in the engines texture list. We free all texture lists if it changes.
Definition at line 67 of file draw_view_data.hh.
Referenced by texture_list_size_validate().
| blender::Map<std::string, std::unique_ptr<blender::draw::TextureFromPool> > DRWViewData::viewport_compositor_passes |
Stores passes needed by the viewport compositor. Engines are expected to populate those in every redraw using calls to the DRW_viewport_pass_texture_get function. The compositor can then call the same function to retrieve the passes it needs, which are expected to be initialized. Those textures are release when view data is reset.
Definition at line 90 of file draw_view_data.hh.
Referenced by DRW_view_data_reset(), and DRW_viewport_pass_texture_get().
| blender::workbench::Engine DRWViewData::workbench |
Definition at line 71 of file draw_view_data.hh.
Referenced by DRWContext::enable_engines(), and foreach_engine().