|
Blender V5.3
|
Classes | |
| struct | Cache |
Enumerations | |
| enum class | ExecutionMode : uint8_t { Render , Preview } |
Functions | |
| bool | is_enabled (const Scene &scene, ExecutionMode mode) |
| SceneCompositorEffect * | get_effect (const Scene &scene, StringRef name) |
| SceneCompositorEffect * | get_active_effect (const Scene &scene) |
| bool | is_effect_enabled (const SceneCompositorEffect &effect, ExecutionMode mode) |
| void | set_active_effect (const Scene &scene, SceneCompositorEffect &effect) |
| void | rename_effect (Scene &scene, SceneCompositorEffect &effect, StringRef new_name, bool update_animation_data=true) |
| SceneCompositorEffect & | new_effect (Scene &scene, StringRef name) |
| SceneCompositorEffect & | duplicate_effect (Scene &scene, SceneCompositorEffect &source_effect) |
| void | free_effect (Scene &scene, SceneCompositorEffect &effect) |
| void | remove_effect (Scene &scene, SceneCompositorEffect &effect) |
| void | copy_effects (Scene &target_scene, const Scene &source_scene, const int flags) |
| void | free_effects (Scene &scene) |
| void | clear_effects (Scene &scene) |
| void | for_each_id_in_effects (const Scene &scene, LibraryForeachIDData &data) |
| void | write_effects (const Scene &scene, BlendWriter &writer) |
| void | read_effects (Scene &scene, BlendDataReader &reader) |
| const SceneCompositorEffect * | get_effect_from_property (const PointerRNA &property_ptr) |
| void | update_effect_node_group_interface (Main &main, Scene &scene, SceneCompositorEffect &effect) |
| Set< std::string > | get_used_passes (const Scene &scene, const ViewLayer *view_layer, ExecutionMode mode) |
| bool | is_viewport_compositor_enabled (const View3D &view_3d, const RegionView3D ®ion_view_3d) |
| bool | is_viewport_compositor_used (const bContext &context) |
| void | add_depsgraph_relations (Scene &scene, const SceneCompositorEffect &effect, DepsNodeHandle *compositor_output_depsgraph_node) |
| const ComputeContext * | get_zone_viewer_compute_context (const bNode &node, const bke::bNodeTreeZone *zone, const ComputeContext &compute_context, bke::ComputeContextCache &compute_context_cache) |
| const ComputeContext * | compute_viewer_compute_context (const Scene &scene, bke::ComputeContextCache &compute_context_cache) |
| const ComputeContext * | compute_viewer_compute_context (const Scene &scene, const bNodeTree &root_node_group, bke::ComputeContextCache &compute_context_cache) |
| static void | free_effect (SceneCompositorEffect &effect, const bool decrement_user_count) |
| static void | add_passes_used_by_render_layer_node (const bNode *node, Set< std::string > &used_passes) |
| static void | add_passes_used_by_group_input_node (const bNode *node, Set< std::string > &used_passes) |
| static void | add_passes_used_by_cryptomatte_node (const bNode *node, const ViewLayer *view_layer, Set< std::string > &used_passes) |
| static void | add_used_passes_recursive (const bNodeTree *node_tree, const ViewLayer *view_layer, const bool is_root_tree_of_first_effect, Set< const bNodeTree * > &node_trees_already_searched, Set< std::string > &used_passes) |
| static const ComputeContext * | compute_viewer_compute_context_recursive (const bNodeTree &node_group, const ComputeContext &compute_context, const bNodeInstanceKey instance_key, const bNodeInstanceKey active_node_group_instance_key, bke::ComputeContextCache &compute_context_cache) |
|
strong |
| Enumerator | |
|---|---|
| Render | |
| Preview | |
Definition at line 112 of file BKE_compositor.hh.
| void blender::bke::compositor::add_depsgraph_relations | ( | Scene & | scene, |
| const SceneCompositorEffect & | effect, | ||
| DepsNodeHandle * | compositor_output_depsgraph_node ) |
Definition at line 644 of file blenkernel/intern/compositor.cc.
References add_depsgraph_relations(), blender::nodes::gather_eval_dependencies_recursive(), blender::IDP_foreach_property(), blender::IDP_TYPE_FILTER_ID, blender::SceneCompositorEffect::node_group, and blender::SceneCompositorEffect::system_properties.
Referenced by add_depsgraph_relations(), blender::deg::DepsgraphRelationBuilder::build_scene_compositor(), and free_effect().
|
static |
Definition at line 467 of file blenkernel/intern/compositor.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_passes_used_by_cryptomatte_node(), blender::BKE_cryptomatte_init_from_scene(), blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get(), blender::math::ceil(), blender::CMP_NODE_CRYPTOMATTE_SOURCE_RENDER, blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), blender::ViewLayer::cryptomatte_flag, blender::ViewLayer::cryptomatte_levels, blender::data, blender::IndexRange::IndexRange(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ViewLayer::name, node, RE_PASSNAME_CRYPTOMATTE_ASSET, RE_PASSNAME_CRYPTOMATTE_MATERIAL, RE_PASSNAME_CRYPTOMATTE_OBJECT, blender::StringRef::StringRef(), blender::VIEW_LAYER_CRYPTOMATTE_ASSET, blender::VIEW_LAYER_CRYPTOMATTE_MATERIAL, and blender::VIEW_LAYER_CRYPTOMATTE_OBJECT.
Referenced by add_passes_used_by_cryptomatte_node(), and add_used_passes_recursive().
|
static |
Definition at line 451 of file blenkernel/intern/compositor.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_passes_used_by_group_input_node(), node, and RE_PASSNAME_COMBINED.
Referenced by add_passes_used_by_group_input_node(), and add_used_passes_recursive().
|
static |
Definition at line 432 of file blenkernel/intern/compositor.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_passes_used_by_render_layer_node(), node, output, and RE_PASSNAME_COMBINED.
Referenced by add_passes_used_by_render_layer_node(), and add_used_passes_recursive().
|
static |
Definition at line 531 of file blenkernel/intern/compositor.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), add_passes_used_by_cryptomatte_node(), add_passes_used_by_group_input_node(), add_passes_used_by_render_layer_node(), add_used_passes_recursive(), CMP_NODE_CRYPTOMATTE, CMP_NODE_R_LAYERS, node, NODE_CUSTOM_GROUP, NODE_GROUP, and NODE_GROUP_INPUT.
Referenced by add_used_passes_recursive(), and get_used_passes().
| void blender::bke::compositor::clear_effects | ( | Scene & | scene | ) |
Definition at line 341 of file blenkernel/intern/compositor.cc.
References clear_effects(), blender::Scene::compositor_effects, and remove_effect().
Referenced by clear_effects(), and free_effect().
| const ComputeContext * blender::bke::compositor::compute_viewer_compute_context | ( | const Scene & | scene, |
| bke::ComputeContextCache & | compute_context_cache ) |
Definition at line 817 of file blenkernel/intern/compositor.cc.
References blender::bNodeTree::active_viewer_key, compute_viewer_compute_context(), compute_viewer_compute_context_recursive(), blender::DEG_get_original(), blender::bke::ComputeContextCache::for_data_block(), blender::bke::ComputeContextCache::for_scene_compositor_effect(), get_active_effect(), blender::Scene::id, ID_MISSING, is_effect_enabled(), blender::SceneCompositorEffect::node_group, blender::bke::NODE_INSTANCE_KEY_BASE, and Preview.
Referenced by compute_viewer_compute_context(), compute_viewer_compute_context(), and free_effect().
| const ComputeContext * blender::bke::compositor::compute_viewer_compute_context | ( | const Scene & | scene, |
| const bNodeTree & | root_node_group, | ||
| bke::ComputeContextCache & | compute_context_cache ) |
Definition at line 846 of file blenkernel/intern/compositor.cc.
References blender::bNodeTree::active_viewer_key, compute_viewer_compute_context(), compute_viewer_compute_context_recursive(), blender::bke::ComputeContextCache::for_data_block(), blender::Scene::id, and blender::bke::NODE_INSTANCE_KEY_BASE.
|
static |
Definition at line 762 of file blenkernel/intern/compositor.cc.
References compute_viewer_compute_context_recursive(), blender::DEG_get_original(), blender::bke::ComputeContextCache::for_group_node(), get_zone_viewer_compute_context(), ID_MISSING, node, blender::NODE_DO_OUTPUT, and blender::bke::node_instance_key().
Referenced by compute_viewer_compute_context(), compute_viewer_compute_context(), and compute_viewer_compute_context_recursive().
| void blender::bke::compositor::copy_effects | ( | Scene & | target_scene, |
| const Scene & | source_scene, | ||
| const int | flags ) |
Definition at line 321 of file blenkernel/intern/compositor.cc.
References blender::BLI_addtail(), blender::Scene::compositor_effects, copy_effects(), blender::IDP_CopyProperty_ex(), new_effect(), and blender::SceneCompositorEffect::system_properties.
Referenced by copy_effects(), free_effect(), and blender::scene_copy_data().
| SceneCompositorEffect & blender::bke::compositor::duplicate_effect | ( | Scene & | scene, |
| SceneCompositorEffect & | source_effect ) |
Definition at line 281 of file blenkernel/intern/compositor.cc.
References blender::BLI_addtail(), blender::Scene::compositor_effects, duplicate_effect(), blender::bNodeTree::id, blender::id_us_plus(), blender::IDP_CopyProperty_ex(), blender::SceneCompositorEffect::name, new_effect(), blender::SceneCompositorEffect::node_group, rename_effect(), set_active_effect(), and blender::SceneCompositorEffect::system_properties.
Referenced by blender::duplicate_compositor_effect_exec(), and duplicate_effect().
| void blender::bke::compositor::for_each_id_in_effects | ( | const Scene & | scene, |
| LibraryForeachIDData & | data ) |
Definition at line 348 of file blenkernel/intern/compositor.cc.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_IDSUPER, blender::Scene::compositor_effects, blender::data, for_each_id_in_effects(), blender::IDP_foreach_property(), blender::IDP_TYPE_FILTER_ID, blender::IDWALK_CB_USER, blender::SceneCompositorEffect::node_group, and blender::SceneCompositorEffect::system_properties.
Referenced by for_each_id_in_effects(), free_effect(), and blender::scene_foreach_id().
| void blender::bke::compositor::free_effect | ( | Scene & | scene, |
| SceneCompositorEffect & | effect ) |
References add_depsgraph_relations(), clear_effects(), compute_viewer_compute_context(), copy_effects(), blender::data, for_each_id_in_effects(), free_effect(), free_effects(), get_effect_from_property(), get_used_passes(), get_zone_viewer_compute_context(), is_viewport_compositor_enabled(), is_viewport_compositor_used(), main, node, read_effects(), remove_effect(), update_effect_node_group_interface(), and write_effects().
Referenced by free_effect(), free_effect(), free_effects(), and remove_effect().
|
static |
Definition at line 296 of file blenkernel/intern/compositor.cc.
References free_effect(), blender::bNodeTree::id, blender::id_us_min(), blender::IDP_FreeProperty_ex(), blender::SceneCompositorEffect::node_group, and blender::SceneCompositorEffect::system_properties.
| void blender::bke::compositor::free_effects | ( | Scene & | scene | ) |
Definition at line 333 of file blenkernel/intern/compositor.cc.
References blender::Scene::compositor_effects, free_effect(), and free_effects().
Referenced by free_effect(), free_effects(), and blender::scene_free_data().
| SceneCompositorEffect * blender::bke::compositor::get_active_effect | ( | const Scene & | scene | ) |
Definition at line 206 of file blenkernel/intern/compositor.cc.
References blender::Scene::compositor_effects, blender::SceneCompositorEffect::flags, get_active_effect(), and blender::IsActive.
Referenced by blender::buttons_context_path_compositor(), blender::composite_get_from_context(), compute_viewer_compute_context(), blender::duplicate_compositor_effect_exec(), blender::duplicate_compositor_effect_node_group_exec(), get_active_effect(), blender::ed::space_node::get_context_path_node_compositor(), blender::ed::space_node::get_scene_compositor_effect_for_node_editor(), and blender::new_compositor_effect_node_group_exec().
| SceneCompositorEffect * blender::bke::compositor::get_effect | ( | const Scene & | scene, |
| StringRef | name ) |
Definition at line 200 of file blenkernel/intern/compositor.cc.
References blender::BLI_findstring(), blender::Scene::compositor_effects, blender::blender::StringRefBase::data(), get_effect(), and offsetof.
Referenced by blender::duplicate_compositor_effect_exec(), get_effect(), blender::move_compositor_effect_to_index_exec(), blender::remove_compositor_effect_exec(), and blender::set_active_compositor_effect_exec().
| const SceneCompositorEffect * blender::bke::compositor::get_effect_from_property | ( | const PointerRNA & | property_ptr | ) |
Definition at line 382 of file blenkernel/intern/compositor.cc.
References blender::Scene::compositor_effects, get_effect_from_property(), blender::IDP_foreach_property(), blender::PointerRNA::owner_id, blender::RNA_struct_search_closest_ancestor_by_type(), and blender::SceneCompositorEffect::system_properties.
Referenced by free_effect(), get_effect_from_property(), and blender::nodes::rna_SceneCompositorEffectInputProperty_path().
| Set< std::string > blender::bke::compositor::get_used_passes | ( | const Scene & | scene, |
| const ViewLayer * | view_layer, | ||
| ExecutionMode | mode ) |
Definition at line 574 of file blenkernel/intern/compositor.cc.
References add_used_passes_recursive(), blender::Scene::compositor_effects, get_used_passes(), is_effect_enabled(), and blender::SceneCompositorEffect::node_group.
Referenced by blender::draw::gpencil::Instance::begin_sync(), free_effect(), get_used_passes(), and blender::eevee::Film::init().
| const ComputeContext * blender::bke::compositor::get_zone_viewer_compute_context | ( | const bNode & | node, |
| const bke::bNodeTreeZone * | zone, | ||
| const ComputeContext & | compute_context, | ||
| bke::ComputeContextCache & | compute_context_cache ) |
Definition at line 724 of file blenkernel/intern/compositor.cc.
References BLI_assert_unreachable, blender::bke::ComputeContextCache::for_repeat_zone(), blender::bke::bNodeTreeZones::get_zone_by_node(), get_zone_viewer_compute_context(), blender::bke::bNodeTreeZones::get_zones_to_enter(), blender::NodeGeometryRepeatOutput::inspection_index, node, and blender::bNode::storage.
Referenced by compute_viewer_compute_context_recursive(), free_effect(), blender::compositor::get_output_nodes(), get_zone_viewer_compute_context(), and blender::compositor::has_viewer_node().
| bool blender::bke::compositor::is_effect_enabled | ( | const SceneCompositorEffect & | effect, |
| ExecutionMode | mode ) |
Definition at line 217 of file blenkernel/intern/compositor.cc.
References BLI_assert_unreachable, blender::DEG_get_original(), blender::EnableForPreview, blender::EnableForRender, blender::SceneCompositorEffect::flags, ID_MISSING, is_effect_enabled(), blender::SceneCompositorEffect::node_group, Preview, and Render.
Referenced by blender::check_valid_compositing_camera(), compute_viewer_compute_context(), blender::compositor::SceneCompositorEffectsOperation::execute(), blender::get_scenes_that_needs_render_by_compositor(), get_used_passes(), is_effect_enabled(), is_enabled(), and blender::scene_blend_write().
| bool blender::bke::compositor::is_enabled | ( | const Scene & | scene, |
| ExecutionMode | mode ) |
Definition at line 185 of file blenkernel/intern/compositor.cc.
References blender::Scene::compositor_effects, is_effect_enabled(), is_enabled(), blender::Scene::r, blender::R_DOCOMP, Render, and blender::RenderData::scemode.
Referenced by blender::check_valid_compositing_camera(), blender::do_render_compositor(), blender::get_scenes_that_needs_render_by_compositor(), blender::is_compositing_possible(), is_enabled(), is_viewport_compositor_used(), blender::DRWContext::is_viewport_compositor_used(), blender::memfile_undosys_step_decode(), blender::possibly_using_gpu_compositor(), blender::RE_FreeUnusedGPUResources(), blender::RE_is_rendering_allowed(), blender::seq::seq_render_scene_strip_ex(), blender::ed::transform::special_aftertrans_update__mask(), blender::ed::transform::special_aftertrans_update__movieclip(), and blender::ed::transform::special_aftertrans_update__movieclip_for_curves().
| bool blender::bke::compositor::is_viewport_compositor_enabled | ( | const View3D & | view_3d, |
| const RegionView3D & | region_view_3d ) |
Definition at line 592 of file blenkernel/intern/compositor.cc.
References ELEM, is_viewport_compositor_enabled(), blender::OB_MATERIAL, blender::OB_RENDER, blender::OB_TEXTURE, blender::RegionView3D::persp, blender::RV3D_CAMOB, blender::View3D::shading, blender::View3DShading::type, blender::View3DShading::use_compositor, blender::V3D_SHADING_USE_COMPOSITOR_CAMERA, and blender::V3D_SHADING_USE_COMPOSITOR_DISABLED.
Referenced by free_effect(), is_viewport_compositor_enabled(), is_viewport_compositor_used(), blender::DRWContext::is_viewport_compositor_used(), and blender::view3d_main_region_listener().
| bool blender::bke::compositor::is_viewport_compositor_used | ( | const bContext & | context | ) |
Definition at line 611 of file blenkernel/intern/compositor.cc.
References blender::bScreen::areabase, blender::CTX_data_scene(), blender::CTX_wm_manager(), is_enabled(), is_viewport_compositor_enabled(), is_viewport_compositor_used(), Preview, blender::ScrArea::regionbase, blender::ARegion::regiondata, blender::ARegion::regiontype, blender::RGN_TYPE_WINDOW, blender::SPACE_VIEW3D, blender::ScrArea::spacedata, blender::SpaceLink::spacetype, blender::wmWindowManager::windows, and blender::WM_window_get_active_screen().
Referenced by free_effect(), is_viewport_compositor_used(), blender::nodes::node_composite_cryptomatte_cc::node_extra_info(), and blender::nodes::node_composite_render_layer_cc::node_extra_info().
| SceneCompositorEffect & blender::bke::compositor::new_effect | ( | Scene & | scene, |
| StringRef | name ) |
Definition at line 272 of file blenkernel/intern/compositor.cc.
References blender::BLI_addtail(), blender::Scene::compositor_effects, new_effect(), rename_effect(), and set_active_effect().
Referenced by blender::add_compositor_effect_exec(), blender::add_compositor_effect_node_group_asset_exec(), copy_effects(), duplicate_effect(), blender::new_compositor_effect_node_group_exec(), new_effect(), and blender::version_compositing_node_group_to_effect().
| void blender::bke::compositor::read_effects | ( | Scene & | scene, |
| BlendDataReader & | reader ) |
Definition at line 373 of file blenkernel/intern/compositor.cc.
References BLO_read_struct, BLO_read_struct_list, blender::Scene::compositor_effects, IDP_BlendDataRead, read_effects(), and blender::SceneCompositorEffect::system_properties.
Referenced by free_effect(), read_effects(), and blender::scene_blend_read_data().
| void blender::bke::compositor::remove_effect | ( | Scene & | scene, |
| SceneCompositorEffect & | effect ) |
Definition at line 309 of file blenkernel/intern/compositor.cc.
References blender::BLI_remlink(), blender::Scene::compositor_effects, blender::SceneCompositorEffect::flags, free_effect(), blender::IsActive, remove_effect(), and set_active_effect().
Referenced by clear_effects(), free_effect(), blender::remove_compositor_effect_exec(), and remove_effect().
| void blender::bke::compositor::rename_effect | ( | Scene & | scene, |
| SceneCompositorEffect & | effect, | ||
| StringRef | new_name, | ||
| bool | update_animation_data = true ) |
Definition at line 245 of file blenkernel/intern/compositor.cc.
References blender::BKE_animdata_fix_paths(), blender::BLI_uniquename(), BLT_I18NCONTEXT_ID_SCENE, blender::Scene::compositor_effects, blender::blender::StringRefBase::copy_utf8_truncated(), CTX_DATA_, G_MAIN, blender::Scene::id, blender::SceneCompositorEffect::name, offsetof, rename_effect(), and blender::RNA_path_name_to_infix().
Referenced by duplicate_effect(), new_effect(), and rename_effect().
| void blender::bke::compositor::set_active_effect | ( | const Scene & | scene, |
| SceneCompositorEffect & | effect ) |
Definition at line 235 of file blenkernel/intern/compositor.cc.
References blender::Scene::compositor_effects, blender::SceneCompositorEffect::flags, blender::IsActive, and set_active_effect().
Referenced by duplicate_effect(), new_effect(), remove_effect(), blender::set_active_compositor_effect_exec(), and set_active_effect().
| void blender::bke::compositor::update_effect_node_group_interface | ( | Main & | main, |
| Scene & | scene, | ||
| SceneCompositorEffect & | effect ) |
Definition at line 405 of file blenkernel/intern/compositor.cc.
References blender::bke::idprop::create_group(), blender::DEG_id_tag_update(), blender::Scene::id, ID_MISSING, blender::ID_RECALC_COMPOSITOR, main, NC_SCENE, ND_COMPO_RESULT, blender::SceneCompositorEffect::node_group, blender::RNA_ensure_and_sync_system_properties(), blender::RNA_pointer_create_discrete(), blender::SceneCompositorEffect::system_properties, update_effect_node_group_interface(), and blender::WM_main_add_notifier().
Referenced by blender::add_compositor_effect_node_group_asset_exec(), free_effect(), update_effect_node_group_interface(), and blender::bke::NodeTreeMainUpdater::update_rooted().
| void blender::bke::compositor::write_effects | ( | const Scene & | scene, |
| BlendWriter & | writer ) |
Definition at line 363 of file blenkernel/intern/compositor.cc.
References blender::Scene::compositor_effects, blender::IDP_BlendWrite(), blender::SceneCompositorEffect::system_properties, write_effects(), and blender::BlendWriter::write_struct_list().
Referenced by free_effect(), blender::scene_blend_write(), and write_effects().