|
Blender V5.3
|
Inherits blender::DrawEngine.
Public Member Functions | |
| StringRefNull | name_get () final |
| Span< const GPUMaterial * > | get_dummy_gpu_materials (int material_count) |
| void | init () final |
| void | init (Depsgraph *depsgraph, Object *camera_ob=nullptr) |
| void | begin_sync () final |
| void | end_sync () final |
| Material | get_material (ObjectRef ob_ref, eV3DShadingColorType color_type, int slot=0) |
| void | object_sync (ObjectRef &ob_ref, Manager &manager) final |
| template<typename F> | |
| void | draw_to_mesh_pass (ObjectRef &ob_ref, bool is_transparent, F draw_callback) |
| void | draw_mesh (ObjectRef &ob_ref, Material &material, gpu::Batch *batch, ResourceHandleRange handle, const MaterialTexture *texture=nullptr, bool show_missing_texture=false) |
| void | mesh_sync (Manager &manager, ObjectRef &ob_ref, ResourceHandleRange handle, const ObjectState &object_state) |
| void | sculpt_sync (Manager &manager, ObjectRef &ob_ref, ResourceHandleRange handle, const ObjectState &object_state) |
| void | pointcloud_sync (Manager &manager, ObjectRef &ob_ref, const ObjectState &object_state) |
| void | hair_sync (Manager &manager, ObjectRef &ob_ref, ResourceHandle emitter_handle, const ObjectState &object_state, ParticleSystem *psys, ModifierData *md) |
| void | curves_sync (Manager &manager, ObjectRef &ob_ref, const ObjectState &object_state) |
| void | draw (Manager &manager, gpu::Texture *depth_tx, gpu::Texture *depth_in_front_tx, gpu::Texture *color_tx) |
| void | draw_viewport (Manager &manager, gpu::Texture *depth_tx, gpu::Texture *depth_in_front_tx, gpu::Texture *color_tx) |
| void | draw (Manager &manager) final |
| void | draw_image_render (Manager &manager, gpu::Texture *depth_tx, gpu::Texture *depth_in_front_tx, gpu::Texture *color_tx, RenderEngine *engine=nullptr) |
| Public Member Functions inherited from blender::DrawEngine | |
| virtual | ~DrawEngine ()=default |
| virtual bool | uses_render_border () const |
Public Attributes | |
| const DRWContext * | draw_ctx = nullptr |
| Public Attributes inherited from blender::DrawEngine | |
| char | info [GPU_INFO_SIZE] = {'\0'} |
| bool | used = false |
Additional Inherited Members | |
| Static Public Attributes inherited from blender::DrawEngine | |
| static constexpr int | GPU_INFO_SIZE = 512 |
Definition at line 52 of file workbench_engine.cc.
|
inlinefinalvirtual |
Scene synchronization. Command buffers building.
Implements blender::DrawEngine.
Definition at line 116 of file workbench_engine.cc.
References final.
|
inline |
Definition at line 444 of file workbench_engine.cc.
References blender::workbench::ObjectState::color_type, draw_to_mesh_pass(), get_material(), and blender::draw::Manager::unique_handle().
Referenced by object_sync().
|
inlinefinalvirtual |
Command Submission.
Implements blender::DrawEngine.
Definition at line 546 of file workbench_engine.cc.
References blender::DefaultTextureList::color, blender::DefaultTextureList::depth, blender::DefaultTextureList::depth_in_front, draw_ctx, draw_image_render(), draw_viewport(), blender::DRW_submission_end(), and blender::DRW_submission_start().
|
inline |
Definition at line 464 of file workbench_engine.cc.
References blender::draw::View::default_get(), draw_ctx, blender::draw::DRW_gsplat_ensure_radiance(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, blender::GPU_framebuffer_clear_depth_stencil(), blender::GPU_framebuffer_multi_clear(), blender::GPU_TEXTURE_USAGE_ATTACHMENT, and blender::GPU_TEXTURE_USAGE_SHADER_READ.
|
inline |
Definition at line 560 of file workbench_engine.cc.
References blender::BLI_assert(), draw_ctx, ELEM, blender::GPU_backend_get_type(), blender::GPU_BACKEND_METAL, blender::GPU_BACKEND_VULKAN, blender::GPU_flush(), blender::GPU_render_step(), blender::IndexRange::IndexRange(), blender::RE_engine_set_error_message(), and blender::RE_engine_test_break().
Referenced by draw().
|
inline |
Definition at line 268 of file workbench_engine.cc.
References draw_to_mesh_pass(), and texture().
Referenced by mesh_sync(), and sculpt_sync().
|
inline |
Definition at line 244 of file workbench_engine.cc.
References blender::Object::dtx, F, blender::OB_DRAW_IN_FRONT, and blender::draw::ObjectRef::object.
Referenced by curves_sync(), draw_mesh(), hair_sync(), and pointcloud_sync().
|
inline |
Definition at line 527 of file workbench_engine.cc.
References blender::DRW_viewport_request_redraw(), blender::DrawEngine::info, and blender::STRNCPY().
Referenced by draw().
|
inlinefinalvirtual |
Implements blender::DrawEngine.
Definition at line 133 of file workbench_engine.cc.
References final.
|
inline |
Definition at line 87 of file workbench_engine.cc.
References blender::IndexRange::IndexRange().
|
inline |
Definition at line 139 of file workbench_engine.cc.
References ATTR_FALLTHROUGH, blender::BKE_material_default_empty(), blender::BKE_object_material_get_eval(), blender::draw::ObjectRef::object, blender::V3D_SHADING_MATERIAL_COLOR, blender::V3D_SHADING_OBJECT_COLOR, blender::V3D_SHADING_RANDOM_COLOR, blender::V3D_SHADING_SINGLE_COLOR, blender::V3D_SHADING_TEXTURE_COLOR, and blender::V3D_SHADING_VERTEX_COLOR.
Referenced by curves_sync(), hair_sync(), mesh_sync(), object_sync(), pointcloud_sync(), and sculpt_sync().
|
inline |
Definition at line 417 of file workbench_engine.cc.
References blender::workbench::ObjectState::color_type, draw_to_mesh_pass(), get_material(), blender::eevee::Instance::manager, blender::draw::ObjectRef::object, blender::ParticleSettings::omat, blender::ParticleSystem::part, blender::draw::Manager::resource_handle_for_psys(), texture(), and blender::V3D_SHADING_TEXTURE_COLOR.
Referenced by object_sync().
|
inlinefinalvirtual |
Init engine. Run first and for every redraw.
Implements blender::DrawEngine.
Definition at line 95 of file workbench_engine.cc.
References blender::DRWContext::depsgraph, draw_ctx, blender::DRW_context_get(), final, and init().
Referenced by init().
|
inline |
Definition at line 101 of file workbench_engine.cc.
References blender::assign_if_different(), blender::DEG_get_update_count(), blender::eevee::Instance::depsgraph, and blender::DRW_context_get().
|
inline |
Definition at line 287 of file workbench_engine.cc.
References blender::BKE_object_material_used_with_fallback_eval(), blender::workbench::ObjectState::color_type, draw_mesh(), blender::workbench::ObjectState::draw_shadow, blender::draw::DRW_cache_mesh_surface_sculptcolors_get(), blender::draw::DRW_cache_mesh_surface_texpaint_get(), blender::draw::DRW_cache_mesh_surface_texpaint_single_get(), blender::draw::DRW_cache_mesh_surface_vertpaint_get(), blender::draw::DRW_cache_object_surface_get(), blender::draw::DRW_cache_object_surface_material_get(), get_material(), blender::workbench::ObjectState::image_paint_override, blender::IndexRange::IndexRange(), blender::Span< T >::is_empty(), blender::eevee::Instance::manager, blender::Object::mode, blender::OB_MODE_VERTEX_PAINT, blender::draw::ObjectRef::object, blender::workbench::ObjectState::show_missing_texture, texture(), blender::workbench::ObjectState::use_per_material_batches, blender::V3D_SHADING_TEXTURE_COLOR, and blender::V3D_SHADING_VERTEX_COLOR.
Referenced by object_sync().
|
inlinefinalvirtual |
Implements blender::DrawEngine.
Definition at line 82 of file workbench_engine.cc.
References final.
|
inlinefinalvirtual |
Implements blender::DrawEngine.
Definition at line 162 of file workbench_engine.cc.
References blender::Object::base_flag, blender::BASE_FROM_DUPLI, blender::BKE_modifier_is_enabled(), blender::BKE_modifiers_findby_type(), blender::workbench::ObjectState::color_type, curves_sync(), blender::FluidModifierData::domain, blender::ParticleSettings::draw_as, draw_ctx, blender::DRW_object_is_renderable(), blender::DRW_object_is_visible_psys_in_active_context(), blender::DRW_object_visibility_in_active_context(), blender::Object::dt, blender::eModifierMode_Realtime, blender::eModifierType_Fluid, blender::eModifierType_ParticleSystem, blender::FLUID_DOMAIN_TYPE_GAS, get_material(), hair_sync(), blender::DRWContext::is_scene_render(), blender::eevee::Instance::manager, mesh_sync(), blender::Object::modifiers, blender::OB_CURVES, blender::OB_MESH, blender::OB_POINTCLOUD, blender::OB_SOLID, blender::OB_VISIBLE_SELF, blender::OB_VOLUME, blender::OB_WIRE, blender::ParticleSystem::part, blender::PART_DRAW_PATH, blender::PART_DRAW_REND, pointcloud_sync(), blender::ParticleSettings::ren_as, blender::workbench::ObjectState::sculpt_pbvh, sculpt_sync(), blender::FluidDomainSettings::type, blender::ModifierData::type, blender::Object::type, blender::draw::Manager::unique_handle(), and blender::draw::Manager::unique_handle_for_sculpt().
|
inline |
Definition at line 397 of file workbench_engine.cc.
References blender::workbench::ObjectState::color_type, blender::draw::detail::PassBase< DrawCommandBufType >::draw(), draw_to_mesh_pass(), get_material(), blender::workbench::GSPLAT, blender::eevee::Instance::manager, blender::draw::ObjectRef::object, blender::workbench::POINTCLOUD, blender::draw::pointcloud_is_gsplat(), blender::draw::pointcloud_sub_pass_setup(), blender::draw::detail::PassBase< DrawCommandBufType >::sub(), and blender::draw::Manager::unique_handle().
Referenced by object_sync().
|
inline |
Definition at line 356 of file workbench_engine.cc.
References blender::workbench::ObjectState::color_type, draw_mesh(), get_material(), blender::workbench::ObjectState::image_paint_override, blender::eevee::Instance::manager, blender::draw::ObjectRef::object, blender::draw::SCULPT_BATCH_DEFAULT, blender::draw::SCULPT_BATCH_UV, blender::draw::SCULPT_BATCH_VERTEX_COLOR, blender::draw::sculpt_batches_get(), blender::workbench::ObjectState::show_missing_texture, texture(), blender::workbench::ObjectState::use_per_material_batches, blender::V3D_SHADING_TEXTURE_COLOR, and blender::V3D_SHADING_VERTEX_COLOR.
Referenced by object_sync().
| const DRWContext* blender::workbench::Instance::draw_ctx = nullptr |
Definition at line 80 of file workbench_engine.cc.
Referenced by draw(), draw(), draw_image_render(), init(), and object_sync().