|
Blender V5.3
|
Namespaces | |
| namespace | tests |
Classes | |
| struct | BakeDataBlockID |
| struct | BakeDataBlockMap |
| struct | BakeMaterialsList |
| struct | BakeNodeCache |
| struct | BakePath |
| class | BakeToRuntimeValue |
| class | BakeValues |
| class | BlobReader |
| class | BlobReadSharing |
| struct | BlobSlice |
| class | BlobWriter |
| class | BlobWriteSharing |
| class | DeferredTypeAttributeFieldInput |
| class | DiskBlobReader |
| class | DiskBlobWriter |
| struct | FrameCache |
| class | MemoryBlobReader |
| class | MemoryBlobWriter |
| struct | MetaFile |
| struct | ModifierCache |
| struct | NodeBakeCache |
| struct | PrevCache |
| class | RuntimeToBakeValue |
| struct | SimulationNodeCache |
Typedefs | |
| using | DictionaryValuePtr = std::shared_ptr<DictionaryValue> |
Enumerations | |
| enum class | CacheStatus { Valid , Invalid , Baked } |
| enum class | PackGeometryNodesBakeResult { NoDataFound , PackedAlready , Success } |
| enum class | UnpackGeometryNodesBakeResult { BlendFileNotSaved , NoPackedData , Error , Success } |
Functions | |
| void | scene_simulation_states_reset (Scene &scene) |
| std::optional< NodesModifierBakeTarget > | get_node_bake_target (const Object &object, const NodesModifierData &nmd, int node_id) |
| std::optional< BakePath > | get_node_bake_path (const Main &bmain, const Object &object, const NodesModifierData &nmd, int node_id) |
| std::optional< IndexRange > | get_node_bake_frame_range (const Scene &scene, const Object &object, const NodesModifierData &nmd, int node_id) |
| std::optional< std::string > | get_modifier_bake_path (const Main &bmain, const Object &object, const NodesModifierData &nmd) |
| std::string | get_default_modifier_bake_directory (const Main &bmain, const Object &object, const NodesModifierData &nmd) |
| std::string | get_default_node_bake_directory (const Main &bmain, const Object &object, const NodesModifierData &nmd, int node_id) |
| NodesModifierPackedBake * | pack_bake_from_disk (const BakePath &bake_path, ReportList *reports) |
| bool | unpack_bake_to_disk (const NodesModifierPackedBake &packed_bake, const BakePath &bake_path, ReportList *reports) |
| PackGeometryNodesBakeResult | pack_geometry_nodes_bake (Main &bmain, ReportList *reports, Object &object, NodesModifierData &nmd, NodesModifierBake &bake) |
| UnpackGeometryNodesBakeResult | unpack_geometry_nodes_bake (Main &bmain, ReportList *reports, Object &object, NodesModifierData &nmd, NodesModifierBake &bake, ePF_FileStatus how) |
| std::string | frame_to_file_name (const SubFrame &frame) |
| std::optional< SubFrame > | file_name_to_frame (StringRef file_name) |
| Vector< MetaFile > | find_sorted_meta_files (StringRefNull meta_dir) |
| void | serialize_bake (const BakeValues &bake_values, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, std::ostream &r_stream) |
| std::optional< BakeValues > | deserialize_bake (std::istream &stream, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| std::ostream & | operator<< (std::ostream &stream, const BakeDataBlockID &id) |
| static std::optional< std::string > | resolve_bake_directory (const Main &bmain, const Object &object, const StringRef directory) |
| static IndexRange | fix_frame_range (const int start, const int end) |
| static std::string | escape_name (const StringRef name) |
| static std::string | get_blend_file_name (const Main &bmain) |
| static std::string | get_modifier_directory_name (const Object &object, const ModifierData &md) |
| static Vector< NodesModifierBakeFile > | pack_files_from_directory (const StringRefNull directory, ReportList *reports) |
| static bool | directory_is_empty (const StringRefNull path) |
| static bool | disk_bake_exists (const bke::bake::BakePath &path) |
| static std::optional< SocketValueVariant > | deserialize_bake_item (const DictionaryValue &io_item, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static void | serialize_socket_value_variant (const SocketValueVariant &value_variant, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, DictionaryValue &r_io_item) |
| static void | serialize_bundle_items (const nodes::Bundle &bundle, ArrayValue &r_io_items, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing) |
| static bool | deserialize_bundle_items (const io::serialize::ArrayValue &io_bundle_items, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing, nodes::Bundle &r_bundle) |
| static std::string | make_independent_file_name (const StringRef base_name, const int file_index, const StringRef extension) |
| static StringRefNull | get_domain_io_name (const AttrDomain domain) |
| static StringRefNull | get_data_type_io_name (const eCustomDataType data_type) |
| static StringRefNull | get_storage_type_io_name (const AttrStorageType storage_type) |
| static std::optional< AttrDomain > | get_domain_from_io_name (const StringRefNull io_name) |
| static std::optional< eCustomDataType > | get_data_type_from_io_name (const StringRefNull io_name) |
| static std::optional< AttrStorageType > | get_storage_type_from_io_name (const StringRefNull io_name) |
| static std::shared_ptr< DictionaryValue > | write_blob_raw_bytes (BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, const void *data, const int64_t size_in_bytes) |
| static bool | read_blob_raw_bytes (const BlobReader &blob_reader, const DictionaryValue &io_data, const int64_t bytes_num, void *r_data) |
| static std::shared_ptr< DictionaryValue > | write_blob_simple_gspan (BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, const GSpan data) |
| static bool | read_blob_simple_gspan (const BlobReader &blob_reader, const DictionaryValue &io_data, GMutableSpan r_data) |
| static std::shared_ptr< DictionaryValue > | write_blob_shared_simple_gspan (BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, const GSpan data, const ImplicitSharingInfo *sharing_info) |
| static const void * | read_blob_shared_simple_gspan (const DictionaryValue &io_data, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing, const CPPType &cpp_type, const int size, const ImplicitSharingInfo **r_sharing_info) |
| template<typename T> | |
| static bool | read_blob_shared_simple_span (const DictionaryValue &io_data, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing, const int size, T **r_data, const ImplicitSharingInfo **r_sharing_info) |
| static bool | load_materials (const io::serialize::ArrayValue &io_materials, std::unique_ptr< BakeMaterialsList > &materials) |
| static bool | load_attributes (const io::serialize::ArrayValue &io_attributes, MutableAttributeAccessor &attributes, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static PointCloud * | try_load_pointcloud (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static std::optional< CurvesGeometry > | try_load_curves_geometry (const DictionaryValue &io_curves, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static Curves * | try_load_curves (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static GreasePencil * | try_load_grease_pencil (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static void | load_texspace (const DictionaryValue *io_mesh, Mesh *mesh) |
| static Mesh * | try_load_mesh (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static GeometrySet | load_geometry (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static std::unique_ptr< Instances > | try_load_instances (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static nodes::BundlePtr | try_load_geometry_bundle (const DictionaryValue &io_geometry, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static std::shared_ptr< io::serialize::ArrayValue > | serialize_materials (const std::unique_ptr< BakeMaterialsList > &materials) |
| static std::shared_ptr< io::serialize::ArrayValue > | serialize_attributes (const AttributeAccessor &attributes, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, const Set< std::string > &attributes_to_ignore) |
| static void | serialize_curves_geometry (DictionaryValue &io_curves, const CurvesGeometry &curves, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing) |
| static void | serialize_texture_space (const Mesh &mesh, std::shared_ptr< DictionaryValue > io_mesh) |
| static std::shared_ptr< DictionaryValue > | serialize_geometry_set (const GeometrySet &geometry, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing) |
| static std::shared_ptr< io::serialize::ArrayValue > | serialize_float_array (const Span< float > values) |
| static std::shared_ptr< io::serialize::ArrayValue > | serialize_int_array (const Span< int > values) |
| static std::shared_ptr< io::serialize::Value > | serialize_primitive_value (const eCustomDataType data_type, const void *value_ptr) |
| template<typename T> | |
| static bool | deserialize_typed_array (const io::serialize::Value &io_value, FunctionRef< std::optional< T >(const io::serialize::Value &io_element)> fn, MutableSpan< T > r_values) |
| template<typename T> | |
| static std::optional< T > | deserialize_int (const io::serialize::Value &io_value) |
| static std::optional< float > | deserialize_float (const io::serialize::Value &io_value) |
| static bool | deserialize_float_array (const io::serialize::Value &io_value, MutableSpan< float > r_values) |
| template<typename T> | |
| static bool | deserialize_int_array (const io::serialize::Value &io_value, MutableSpan< T > r_values) |
| static bool | deserialize_primitive_value (const io::serialize::Value &io_value, const eCustomDataType type, void *r_value) |
| static void | serialize_single_value (const GPointer value, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, DictionaryValue &r_io_item) |
| static void | serialize_field (const fn::GField &field, BlobWriter &, BlobWriteSharing &, DictionaryValue &r_io_item) |
| static void | serialize_list (const nodes::GListPtr &list_ptr, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, DictionaryValue &r_io_item) |
| template<typename T> | |
| static std::optional< T > | deserialize_list_item (const DictionaryValue &io_value, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| template<typename T> | |
| static std::optional< SocketValueVariant > | deserialize_value_list (const DictionaryValue &io_item, const int num_items, const BlobReader &blob_reader, const BlobReadSharing &blob_sharing) |
| static void | serialize_bake_item (const BakeValues::Item &item, BlobWriter &blob_writer, BlobWriteSharing &blob_sharing, DictionaryValue &r_io_item) |
| static std::unique_ptr< BakeMaterialsList > | materials_to_weak_references (Material ***materials, short *materials_num, BakeDataBlockMap *data_block_map) |
| static void | restore_materials (Material ***materials, short *materials_num, std::unique_ptr< BakeMaterialsList > materials_list, BakeDataBlockMap *data_block_map) |
| static bool | value_variant_valid_for_socket (const SocketValueVariant &value, const CPPType &base_cpp_type) |
Variables | |
| static constexpr int | bake_file_version = 3 |
| static constexpr StringRef | anonymous_bake_attribute_prefix = ".bake_" |
| using blender::bke::bake::DictionaryValuePtr = std::shared_ptr<DictionaryValue> |
Definition at line 55 of file bake_items_serialize.cc.
|
strong |
| Enumerator | |
|---|---|
| Valid | The cache is up-to-date with the inputs. |
| Invalid | Nodes or input values have changed since the cache was created, i.e. the output would be different if the simulation was run again. |
| Baked | The cache has been baked and will not be invalidated by changing inputs. |
Definition at line 32 of file BKE_bake_geometry_nodes_modifier.hh.
|
strong |
| Enumerator | |
|---|---|
| NoDataFound | |
| PackedAlready | |
| Success | |
Definition at line 29 of file BKE_bake_geometry_nodes_modifier_pack.hh.
|
strong |
| Enumerator | |
|---|---|
| BlendFileNotSaved | |
| NoPackedData | |
| Error | |
| Success | |
Definition at line 41 of file BKE_bake_geometry_nodes_modifier_pack.hh.
| std::optional< BakeValues > blender::bke::bake::deserialize_bake | ( | std::istream & | stream, |
| const BlobReader & | blob_reader, | ||
| const BlobReadSharing & | blob_sharing ) |
Definition at line 2051 of file bake_items_serialize.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::io::serialize::Value::as_dictionary_value(), bake_file_version, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::Default, blender::io::serialize::JsonFormatter::deserialize(), deserialize_bake(), deserialize_bake_item(), blender::io::serialize::DictionaryValue::elements(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_int(), and PRF_scope.
Referenced by deserialize_bake(), blender::ensure_bake_loaded(), and blender::bke::bake::tests::roundtrip_bake_values().
|
static |
Definition at line 1838 of file bake_items_serialize.cc.
References blender::bke::custom_data_type_to_cpp_type(), blender::bke::bake::BlobSlice::deserialize(), deserialize_bake_item(), blender::bke::AttributeFieldInput::from(), blender::bke::SocketValueVariant::from(), blender::fn::GField::from_input(), get_data_type_from_io_name(), load_geometry(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_str(), blender::bke::bake::BlobReader::read_as_stream(), and blender::StringRef::StringRef().
Referenced by deserialize_bake(), deserialize_bake_item(), deserialize_bundle_items(), and deserialize_list_item().
|
staticnodiscard |
Definition at line 1555 of file bake_items_serialize.cc.
References blender::nodes::Bundle::add(), blender::io::serialize::Value::as_dictionary_value(), deserialize_bake_item(), deserialize_bundle_items(), blender::io::serialize::ArrayValue::elements(), blender::nodes::BundleKey::from_str(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_str(), and blender::bke::node_socket_type_find().
Referenced by deserialize_bundle_items(), and try_load_geometry_bundle().
|
static |
Definition at line 1469 of file bake_items_serialize.cc.
References blender::io::serialize::Value::as_double_value(), blender::io::serialize::Value::as_int_value(), and deserialize_float().
Referenced by deserialize_float(), deserialize_float_array(), and deserialize_primitive_value().
|
staticnodiscard |
Definition at line 1480 of file bake_items_serialize.cc.
References deserialize_float(), deserialize_float_array(), and deserialize_typed_array().
Referenced by deserialize_float_array(), and deserialize_primitive_value().
|
static |
Definition at line 1453 of file bake_items_serialize.cc.
References blender::io::serialize::Value::as_int_value(), deserialize_int(), and blender::io::serialize::PrimitiveValue< T, V >::value().
Referenced by deserialize_int(), deserialize_int_array(), and deserialize_primitive_value().
|
staticnodiscard |
Definition at line 1487 of file bake_items_serialize.cc.
References deserialize_int(), deserialize_int_array(), and deserialize_typed_array().
Referenced by deserialize_int_array(), and deserialize_primitive_value().
|
static |
Definition at line 1749 of file bake_items_serialize.cc.
References deserialize_bake_item(), deserialize_list_item(), and T.
Referenced by deserialize_list_item(), and deserialize_value_list().
|
staticnodiscard |
Definition at line 1494 of file bake_items_serialize.cc.
References blender::io::serialize::Value::as_boolean_value(), blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT16_2D, blender::CD_PROP_INT32, blender::CD_PROP_INT32_2D, blender::CD_PROP_QUATERNION, deserialize_float(), deserialize_float_array(), deserialize_int(), deserialize_int_array(), and deserialize_primitive_value().
Referenced by deserialize_primitive_value().
|
staticnodiscard |
Definition at line 1430 of file bake_items_serialize.cc.
References blender::io::serialize::Value::as_array_value(), deserialize_typed_array(), blender::element, blender::io::serialize::ArrayValue::elements(), blender::MutableSpan< T >::index_range(), and blender::MutableSpan< T >::size().
Referenced by deserialize_float_array(), deserialize_int_array(), and deserialize_typed_array().
|
static |
Definition at line 1762 of file bake_items_serialize.cc.
References blender::GArray< Allocator >::as_mutable_span(), blender::nodes::GList::create(), deserialize_list_item(), deserialize_value_list(), blender::io::serialize::ArrayValue::elements(), blender::nodes::GList::SingleData::ForValue(), blender::bke::SocketValueVariant::from(), blender::nodes::GList::from_garray(), blender::CPPType::get(), blender::IndexRange::IndexRange(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), T, and blender::GMutableSpan::typed().
Referenced by deserialize_value_list().
|
static |
Definition at line 147 of file bake_geometry_nodes_modifier_pack.cc.
References blender::BLI_filelist_dir_contents(), blender::BLI_filelist_free(), BLI_SCOPED_DEFER, blender::StringRefNull::c_str(), directory_is_empty(), FILENAME_IS_CURRPAR, blender::IndexRange::IndexRange(), and blender::direntry::relname.
Referenced by directory_is_empty(), and disk_bake_exists().
|
static |
Definition at line 162 of file bake_geometry_nodes_modifier_pack.cc.
References directory_is_empty(), disk_bake_exists(), and blender::bke::bake::BakePath::meta_dir.
Referenced by disk_bake_exists(), and unpack_geometry_nodes_bake().
|
static |
Turn the name into something that can be used as file name. It does not necessarily have to be human readable, but it can help if it is at least partially readable.
Definition at line 218 of file bake_geometry_nodes_modifier.cc.
References escape_name().
Referenced by escape_name(), and get_modifier_directory_name().
Definition at line 26 of file bake_items_paths.cc.
References blender::BLI_string_replace_char(), blender::blender::StringRefBase::copy_utf8_truncated(), FILE_MAX, and file_name_to_frame().
Referenced by file_name_to_frame(), find_sorted_meta_files(), and blender::try_find_baked_data().
| Vector< MetaFile > blender::bke::bake::find_sorted_meta_files | ( | StringRefNull | meta_dir | ) |
Definition at line 40 of file bake_items_paths.cc.
References b, blender::BLI_filelist_dir_contents(), blender::BLI_filelist_free(), blender::BLI_is_dir(), BLI_SCOPED_DEFER, blender::StringRefNull::c_str(), blender::blender::StringRefBase::endswith(), file_name_to_frame(), find_sorted_meta_files(), blender::bke::bake::MetaFile::frame, blender::IndexRange::IndexRange(), blender::direntry::path, and blender::direntry::relname.
Referenced by find_sorted_meta_files(), and blender::try_find_baked_data().
|
static |
Definition at line 190 of file bake_geometry_nodes_modifier.cc.
References fix_frame_range(), and blender::IndexRange::IndexRange().
Referenced by fix_frame_range(), and get_node_bake_frame_range().
| std::string blender::bke::bake::frame_to_file_name | ( | const SubFrame & | frame | ) |
Definition at line 18 of file bake_items_paths.cc.
References blender::BLI_string_replace_char(), FILE_MAX, frame_to_file_name(), and SNPRINTF.
Referenced by blender::ed::object::bake_simulation::bake_geometry_nodes_startjob(), and frame_to_file_name().
|
static |
Definition at line 233 of file bake_geometry_nodes_modifier.cc.
References blender::BKE_main_blendfile_path(), blender::BLI_path_split_file_part(), blender::StringRefNull::c_str(), FILE_MAX, get_blend_file_name(), blender::blender::StringRefBase::not_found, and blender::StringRef::StringRef().
Referenced by get_blend_file_name(), get_default_modifier_bake_directory(), and get_default_node_bake_directory().
|
static |
Definition at line 349 of file bake_items_serialize.cc.
References blender::StringRefNull::c_str(), get_data_type_from_io_name(), blender::rna_enum_attribute_type_items, and blender::RNA_enum_value_from_identifier().
Referenced by deserialize_bake_item(), get_data_type_from_io_name(), and load_attributes().
|
static |
Definition at line 326 of file bake_items_serialize.cc.
References get_data_type_io_name(), blender::rna_enum_attribute_type_items, and blender::RNA_enum_id_from_value().
Referenced by get_data_type_io_name(), serialize_attributes(), serialize_field(), serialize_list(), and serialize_single_value().
| std::string blender::bke::bake::get_default_modifier_bake_directory | ( | const Main & | bmain, |
| const Object & | object, | ||
| const NodesModifierData & | nmd ) |
Get default directory for baking modifier to disk.
Definition at line 254 of file bake_geometry_nodes_modifier.cc.
References BLI_path_join, FILE_MAX, get_blend_file_name(), get_default_modifier_bake_directory(), get_modifier_directory_name(), and blender::NodesModifierData::modifier.
Referenced by get_default_modifier_bake_directory(), and blender::ed::object::bake_simulation::initialize_modifier_bake_directory_if_necessary().
| std::string blender::bke::bake::get_default_node_bake_directory | ( | const Main & | bmain, |
| const Object & | object, | ||
| const NodesModifierData & | nmd, | ||
| int | node_id ) |
Definition at line 268 of file bake_geometry_nodes_modifier.cc.
References BLI_path_join, FILE_MAX, get_blend_file_name(), get_default_node_bake_directory(), get_modifier_directory_name(), and blender::NodesModifierData::modifier.
Referenced by get_default_node_bake_directory(), and unpack_geometry_nodes_bake().
|
static |
Definition at line 340 of file bake_items_serialize.cc.
References blender::StringRefNull::c_str(), get_domain_from_io_name(), blender::rna_enum_attribute_domain_items, and blender::RNA_enum_value_from_identifier().
Referenced by get_domain_from_io_name(), and load_attributes().
|
static |
Definition at line 319 of file bake_items_serialize.cc.
References get_domain_io_name(), blender::rna_enum_attribute_domain_items, and blender::RNA_enum_id_from_value().
Referenced by get_domain_io_name(), and serialize_attributes().
| std::optional< std::string > blender::bke::bake::get_modifier_bake_path | ( | const Main & | bmain, |
| const Object & | object, | ||
| const NodesModifierData & | nmd ) |
Definition at line 139 of file bake_geometry_nodes_modifier.cc.
References blender::NodesModifierData::bake_directory, get_modifier_bake_path(), and resolve_bake_directory().
Referenced by blender::ed::object::bake_simulation::bake_simulation_get_path_users(), get_modifier_bake_path(), get_node_bake_path(), and blender::ed::object::bake_simulation::try_delete_bake().
|
static |
Definition at line 247 of file bake_geometry_nodes_modifier.cc.
References escape_name(), get_modifier_directory_name(), and blender::ModifierData::name.
Referenced by get_default_modifier_bake_directory(), get_default_node_bake_directory(), and get_modifier_directory_name().
| std::optional< IndexRange > blender::bke::bake::get_node_bake_frame_range | ( | const Scene & | scene, |
| const Object & | object, | ||
| const NodesModifierData & | nmd, | ||
| int | node_id ) |
Definition at line 196 of file bake_geometry_nodes_modifier.cc.
References blender::RenderData::efra, fix_frame_range(), blender::Scene::flag, get_node_bake_frame_range(), blender::NODES_MODIFIER_BAKE_CUSTOM_SIMULATION_FRAME_RANGE, blender::Scene::r, blender::SCE_CUSTOM_SIMULATION_RANGE, blender::RenderData::sfra, blender::Scene::simulation_frame_end, and blender::Scene::simulation_frame_start.
Referenced by blender::ed::object::bake_simulation::bake_single_node_gather_bake_request(), blender::ed::object::bake_simulation::collect_simulations_to_bake(), blender::nodes::get_bake_draw_context(), get_node_bake_frame_range(), blender::NodesModifierSimulationParams::init_simulation_info(), and blender::NodesModifierSimulationParams::reset_invalid_node_bakes().
| std::optional< bake::BakePath > blender::bke::bake::get_node_bake_path | ( | const Main & | bmain, |
| const Object & | object, | ||
| const NodesModifierData & | nmd, | ||
| int | node_id ) |
Definition at line 163 of file bake_geometry_nodes_modifier.cc.
References BLI_path_join, FILE_MAX, blender::bke::bake::BakePath::from_single_root(), get_modifier_bake_path(), get_node_bake_path(), blender::NODES_MODIFIER_BAKE_CUSTOM_PATH, and resolve_bake_directory().
Referenced by blender::ed::object::bake_simulation::bake_simulation_get_path_users(), blender::ed::object::bake_simulation::bake_single_node_gather_bake_request(), blender::ed::object::bake_simulation::collect_simulations_to_bake(), blender::nodes::draw_common_bake_settings(), get_node_bake_path(), pack_geometry_nodes_bake(), blender::ed::object::bake_simulation::pack_single_bake_exec(), blender::ed::object::bake_simulation::try_delete_bake(), blender::try_find_baked_data(), and unpack_geometry_nodes_bake().
| std::optional< NodesModifierBakeTarget > blender::bke::bake::get_node_bake_target | ( | const Object & | object, |
| const NodesModifierData & | nmd, | ||
| int | node_id ) |
Definition at line 146 of file bake_geometry_nodes_modifier.cc.
References blender::NodesModifierData::bake_target, get_node_bake_target(), blender::NODES_MODIFIER_BAKE_TARGET_INHERIT, and blender::NODES_MODIFIER_BAKE_TARGET_PACKED.
Referenced by blender::ed::object::bake_simulation::bake_single_node_gather_bake_request(), blender::ed::object::bake_simulation::collect_simulations_to_bake(), blender::nodes::get_bake_draw_context(), and get_node_bake_target().
|
static |
Definition at line 358 of file bake_items_serialize.cc.
References blender::StringRefNull::c_str(), get_storage_type_from_io_name(), blender::rna_enum_attr_storage_type_items, and blender::RNA_enum_value_from_identifier().
Referenced by get_storage_type_from_io_name(), and load_attributes().
|
static |
Definition at line 333 of file bake_items_serialize.cc.
References get_storage_type_io_name(), blender::rna_enum_attr_storage_type_items, and blender::RNA_enum_id_from_value().
Referenced by get_storage_type_io_name(), and serialize_attributes().
|
staticnodiscard |
Definition at line 480 of file bake_items_serialize.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::Array, blender::bke::MutableAttributeAccessor::assign_data(), attribute, blender::bke::AttributeInitShared::AttributeInitShared(), BLI_SCOPED_DEFER, blender::bke::AttributeAccessor::contains(), blender::CPPType::copy_assign_n(), blender::bke::custom_data_type_to_attr_type(), blender::bke::custom_data_type_to_cpp_type(), blender::bke::AttributeAccessor::domain_size(), blender::io::serialize::ArrayValue::elements(), get_data_type_from_io_name(), get_domain_from_io_name(), get_storage_type_from_io_name(), blender::GPointer::GPointer(), blender::bke::subdiv::init(), load_attributes(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), read_blob_shared_simple_gspan(), blender::ImplicitSharingInfo::remove_user_and_delete_if_last(), blender::bke::Single, and str.
Referenced by load_attributes(), try_load_curves_geometry(), try_load_grease_pencil(), try_load_instances(), try_load_mesh(), and try_load_pointcloud().
|
static |
Definition at line 1057 of file bake_items_serialize.cc.
References load_geometry(), try_load_curves(), try_load_geometry_bundle(), try_load_grease_pencil(), try_load_instances(), try_load_mesh(), and try_load_pointcloud().
Referenced by deserialize_bake_item(), load_geometry(), and try_load_instances().
|
staticnodiscard |
Definition at line 454 of file bake_items_serialize.cc.
References blender::bke::bake::BakeDataBlockID::BakeDataBlockID(), blender::io::serialize::ArrayValue::elements(), blender::ID_MA, load_materials(), and blender::io::serialize::Null.
Referenced by load_materials(), try_load_curves(), try_load_curves_geometry(), try_load_grease_pencil(), try_load_mesh(), and try_load_pointcloud().
|
static |
Definition at line 794 of file bake_items_serialize.cc.
References blender::BLI_assert(), blender::io::serialize::Double, blender::io::serialize::ArrayValue::elements(), float, load_texspace(), blender::io::serialize::DictionaryValue::lookup_array(), and blender::io::serialize::DictionaryValue::lookup_bool().
Referenced by load_texspace(), and try_load_mesh().
|
static |
Definition at line 165 of file bake_items_serialize.cc.
References make_independent_file_name().
Referenced by make_independent_file_name(), blender::bke::bake::DiskBlobWriter::write_as_stream(), and blender::bke::bake::MemoryBlobWriter::write_as_stream().
|
static |
Definition at line 50 of file bake_values.cc.
References blender::bke::bake::BakeDataBlockID::BakeDataBlockID(), materials_to_weak_references(), and blender::bke::bake::BakeDataBlockMap::try_add().
Referenced by materials_to_weak_references().
| std::ostream & blender::bke::bake::operator<< | ( | std::ostream & | stream, |
| const BakeDataBlockID & | id ) |
Definition at line 41 of file bake_data_block_map.cc.
| NodesModifierPackedBake * blender::bke::bake::pack_bake_from_disk | ( | const BakePath & | bake_path, |
| ReportList * | reports ) |
Definition at line 61 of file bake_geometry_nodes_modifier_pack.cc.
References blender::NodesModifierPackedBake::blob_files, blender::NodesModifierPackedBake::blob_files_num, blender::bke::bake::BakePath::blobs_dir, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::bake::BakePath::meta_dir, blender::NodesModifierPackedBake::meta_files, blender::NodesModifierPackedBake::meta_files_num, pack_bake_from_disk(), pack_files_from_directory(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::uninitialized_copy_n().
Referenced by pack_bake_from_disk(), and pack_geometry_nodes_bake().
|
static |
Definition at line 30 of file bake_geometry_nodes_modifier_pack.cc.
References blender::BKE_packedfile_new(), blender::BKE_reportf(), blender::BLI_filelist_dir_contents(), blender::BLI_filelist_free(), blender::BLI_is_dir(), BLI_SCOPED_DEFER, blender::BLI_strdup_null(), blender::StringRefNull::c_str(), FILENAME_IS_CURRPAR, blender::IndexRange::IndexRange(), blender::NodesModifierBakeFile::name, pack_files_from_directory(), blender::NodesModifierBakeFile::packed_file, blender::direntry::path, blender::direntry::relname, and blender::RPT_ERROR.
Referenced by pack_bake_from_disk(), and pack_files_from_directory().
| PackGeometryNodesBakeResult blender::bke::bake::pack_geometry_nodes_bake | ( | Main & | bmain, |
| ReportList * | reports, | ||
| Object & | object, | ||
| NodesModifierData & | nmd, | ||
| NodesModifierBake & | bake ) |
Definition at line 124 of file bake_geometry_nodes_modifier_pack.cc.
References blender::NodesModifierRuntime::cache, blender::DEG_id_tag_update(), get_node_bake_path(), blender::ID_RECALC_GEOMETRY, NoDataFound, blender::NODES_MODIFIER_BAKE_TARGET_PACKED, pack_bake_from_disk(), pack_geometry_nodes_bake(), PackedAlready, blender::NodesModifierData::runtime, and Success.
Referenced by blender::BKE_packedfile_pack_all(), pack_geometry_nodes_bake(), and blender::ed::object::bake_simulation::pack_single_bake_exec().
|
staticnodiscard |
Definition at line 377 of file bake_items_serialize.cc.
References blender::bke::bake::BlobSlice::deserialize(), blender::bke::bake::BlobReader::read(), and read_blob_raw_bytes().
Referenced by read_blob_raw_bytes(), and read_blob_simple_gspan().
|
staticnodiscard |
Definition at line 416 of file bake_items_serialize.cc.
References blender::data, read_blob_shared_simple_gspan(), read_blob_simple_gspan(), and blender::bke::bake::BlobReadSharing::read_shared().
Referenced by load_attributes(), read_blob_shared_simple_gspan(), and read_blob_shared_simple_span().
|
staticnodiscard |
Definition at line 442 of file bake_items_serialize.cc.
References blender::CPPType::get(), read_blob_shared_simple_gspan(), read_blob_shared_simple_span(), and T.
Referenced by read_blob_shared_simple_span(), try_load_curves_geometry(), and try_load_mesh().
|
staticnodiscard |
Definition at line 399 of file bake_items_serialize.cc.
References blender::GMutableSpan::data(), read_blob_raw_bytes(), read_blob_simple_gspan(), and blender::GMutableSpan::size_in_bytes().
Referenced by read_blob_shared_simple_gspan(), read_blob_simple_gspan(), try_load_grease_pencil(), and try_load_instances().
|
static |
Definition at line 108 of file bake_geometry_nodes_modifier.cc.
References blender::BKE_add_template_variables_general(), blender::BKE_blender_project_read_callback(), blender::BKE_path_apply_template(), blender::BLI_path_abs(), blender::BLI_path_is_rel(), blender::blender::StringRefBase::copy_bytes_truncated(), FILE_MAX, ID_BLEND_PATH, blender::blender::StringRefBase::is_empty(), resolve_bake_directory(), blender::blender::StringRefBase::size(), and blender::StringRef::StringRef().
Referenced by get_modifier_bake_path(), get_node_bake_path(), and resolve_bake_directory().
|
static |
Definition at line 75 of file bake_values.cc.
References blender::BLI_assert(), blender::bke::bake::BakeDataBlockMap::lookup_or_remember_missing(), blender::MEM_new_array_zeroed(), and restore_materials().
Referenced by restore_materials().
| void blender::bke::bake::scene_simulation_states_reset | ( | Scene & | scene | ) |
Reset all simulation caches in the scene, for use when some fundamental change made them impossible to reuse.
Definition at line 89 of file bake_geometry_nodes_modifier.cc.
References blender::NodesModifierRuntime::cache, blender::eModifierType_Nodes, FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, blender::NodesModifierData::runtime, scene_simulation_states_reset(), and blender::ModifierData::type.
Referenced by scene_simulation_states_reset().
|
static |
Definition at line 1096 of file bake_items_serialize.cc.
References blender::bke::attr_type_to_custom_data_type(), attribute, blender::bke::attribute_name_is_anonymous(), blender::BLI_assert(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), get_data_type_io_name(), get_domain_io_name(), get_storage_type_io_name(), blender::bke::AttributeIter::name, serialize_attributes(), blender::bke::Single, blender::CommonVArrayInfo::Single, blender::CommonVArrayInfo::Span, blender::CommonVArrayInfo::type, and write_blob_shared_simple_gspan().
Referenced by serialize_attributes(), serialize_curves_geometry(), and serialize_geometry_set().
| void blender::bke::bake::serialize_bake | ( | const BakeValues & | bake_values, |
| BlobWriter & | blob_writer, | ||
| BlobWriteSharing & | blob_sharing, | ||
| std::ostream & | r_stream ) |
Definition at line 2033 of file bake_items_serialize.cc.
References blender::io::serialize::DictionaryValue::append_dict(), blender::io::serialize::DictionaryValue::append_int(), bake_file_version, blender::Default, PRF_scope, blender::io::serialize::JsonFormatter::serialize(), serialize_bake(), serialize_bake_item(), and blender::bke::bake::BakeValues::values_by_id().
Referenced by blender::ed::object::bake_simulation::bake_geometry_nodes_startjob(), blender::bke::bake::tests::roundtrip_bake_values(), and serialize_bake().
|
static |
Definition at line 1827 of file bake_items_serialize.cc.
References blender::io::serialize::DictionaryValue::append_str(), blender::bke::bake::BakeValues::Item::name, serialize_bake_item(), serialize_socket_value_variant(), and blender::bke::bake::BakeValues::Item::value.
Referenced by serialize_bake(), and serialize_bake_item().
|
static |
Definition at line 1593 of file bake_items_serialize.cc.
References blender::io::serialize::ArrayValue::append_dict(), blender::io::serialize::DictionaryValue::append_dict(), blender::io::serialize::DictionaryValue::append_str(), blender::nodes::Bundle::items(), serialize_bundle_items(), and serialize_socket_value_variant().
Referenced by serialize_bundle_items(), serialize_geometry_set(), and serialize_single_value().
|
static |
Definition at line 1143 of file bake_items_serialize.cc.
References blender::io::serialize::DictionaryValue::append(), blender::io::serialize::DictionaryValue::append_int(), serialize_attributes(), serialize_curves_geometry(), and write_blob_shared_simple_gspan().
Referenced by serialize_curves_geometry(), and serialize_geometry_set().
|
static |
Definition at line 1658 of file bake_items_serialize.cc.
References blender::io::serialize::DictionaryValue::append_str(), blender::BLI_assert(), blender::fn::GField::cpp_type(), blender::bke::cpp_type_to_custom_data_type(), get_data_type_io_name(), blender::fn::GField::get_input_if(), and serialize_field().
Referenced by serialize_field(), and serialize_socket_value_variant().
|
static |
Definition at line 1351 of file bake_items_serialize.cc.
References serialize_float_array().
Referenced by serialize_float_array(), and serialize_primitive_value().
|
static |
Definition at line 1179 of file bake_items_serialize.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_as(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::Instances::attributes(), blender::bke::PointCloudRuntime::bake_materials, blender::bke::VolumeRuntime::bake_materials, blender::BKE_volume_grid_get(), blender::BKE_volume_num_grids(), blender::bke::CurvesGeometry::CurvesGeometry(), blender::bke::InstanceReference::GeometrySet, blender::IndexRange::IndexRange(), blender::bke::Instances::instances_num(), blender::blender::StringRefBase::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), layer, blender::bDeformGroup::name, blender::bke::Instances::references(), blender::PointCloud::runtime, blender::Volume::runtime, serialize(), serialize_attributes(), serialize_bundle_items(), serialize_curves_geometry(), serialize_geometry_set(), serialize_materials(), serialize_texture_space(), blender::bke::greasepencil::Drawing::strokes(), blender::PointCloud::totpoint, blender::PointCloud::type, blender::bke::bake::BlobWriter::write_as_stream(), write_blob_shared_simple_gspan(), and write_blob_simple_gspan().
Referenced by serialize_geometry_set(), and serialize_single_value().
|
static |
Definition at line 1360 of file bake_items_serialize.cc.
References serialize_int_array().
Referenced by serialize_int_array(), and serialize_primitive_value().
|
static |
Definition at line 1696 of file bake_items_serialize.cc.
References blender::io::serialize::DictionaryValue::append(), blender::io::serialize::DictionaryValue::append_array(), blender::io::serialize::ArrayValue::append_dict(), blender::io::serialize::DictionaryValue::append_dict(), blender::io::serialize::DictionaryValue::append_int(), blender::io::serialize::DictionaryValue::append_str(), blender::BLI_assert(), blender::bke::cpp_type_to_custom_data_type(), get_data_type_io_name(), blender::IndexRange::IndexRange(), blender::CPPType::is(), blender::CPPType::is_trivial, serialize_list(), serialize_single_value(), and write_blob_shared_simple_gspan().
Referenced by serialize_list(), and serialize_socket_value_variant().
|
static |
Definition at line 1074 of file bake_items_serialize.cc.
References serialize_materials().
Referenced by serialize_geometry_set(), and serialize_materials().
|
static |
Definition at line 1369 of file bake_items_serialize.cc.
References blender::MatBase< T, NumCol, NumRow, Alignment >::base_ptr(), BLI_assert_unreachable, blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT16_2D, blender::CD_PROP_INT32, blender::CD_PROP_INT32_2D, blender::CD_PROP_QUATERNION, blender::MatBase< float, 4, 4 >::col_len, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, blender::MatBase< float, 4, 4 >::row_len, serialize_float_array(), serialize_int_array(), serialize_primitive_value(), and blender::math::QuaternionBase< T >::w.
Referenced by serialize_primitive_value(), and serialize_single_value().
|
static |
Definition at line 1610 of file bake_items_serialize.cc.
References blender::io::serialize::DictionaryValue::append(), blender::io::serialize::DictionaryValue::append_array(), blender::io::serialize::DictionaryValue::append_str(), blender::BLI_assert(), blender::bke::cpp_type_to_custom_data_type(), blender::GPointer::get(), get_data_type_io_name(), blender::CPPType::is(), serialize_bundle_items(), serialize_geometry_set(), serialize_primitive_value(), serialize_single_value(), serialize_socket_value_variant(), str, blender::GPointer::type(), and write_blob_raw_bytes().
Referenced by serialize_list(), serialize_single_value(), and serialize_socket_value_variant().
|
static |
Definition at line 1798 of file bake_items_serialize.cc.
References blender::bke::SocketValueVariant::get(), blender::bke::SocketValueVariant::get_if(), blender::bke::SocketValueVariant::is_context_dependent_field(), blender::bke::SocketValueVariant::is_list(), blender::bke::SocketValueVariant::is_single(), blender::bke::SocketValueVariant::is_volume_grid(), serialize_field(), serialize_list(), serialize_single_value(), and serialize_socket_value_variant().
Referenced by serialize_bake_item(), serialize_bundle_items(), serialize_single_value(), and serialize_socket_value_variant().
|
static |
Definition at line 1163 of file bake_items_serialize.cc.
References serialize_texture_space(), and blender::Span< T >::Span().
Referenced by serialize_geometry_set(), and serialize_texture_space().
|
static |
Definition at line 655 of file bake_items_serialize.cc.
References blender::BKE_id_free(), blender::bke::curves_new_nomain(), load_materials(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), try_load_curves(), and try_load_curves_geometry().
Referenced by load_geometry(), and try_load_curves().
|
static |
Definition at line 610 of file bake_items_serialize.cc.
References load_attributes(), load_materials(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_int(), read_blob_shared_simple_span(), and try_load_curves_geometry().
Referenced by try_load_curves(), try_load_curves_geometry(), and try_load_grease_pencil().
|
static |
Definition at line 1037 of file bake_items_serialize.cc.
References blender::nodes::Bundle::create(), deserialize_bundle_items(), blender::ImplicitSharingPtr< T, IsStrong >::ensure_mutable_inplace(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), and try_load_geometry_bundle().
Referenced by load_geometry(), and try_load_geometry_bundle().
|
static |
Definition at line 692 of file bake_items_serialize.cc.
References blender::io::serialize::Value::as_dictionary_value(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BKE_grease_pencil_new_nomain(), blender::BKE_id_free(), blender::io::serialize::ArrayValue::elements(), blender::IndexRange::IndexRange(), layer, load_attributes(), load_materials(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_str(), read_blob_simple_gspan(), blender::bke::greasepencil::Drawing::strokes_for_write(), try_load_curves_geometry(), and try_load_grease_pencil().
Referenced by load_geometry(), and try_load_grease_pencil().
|
static |
Definition at line 922 of file bake_items_serialize.cc.
References blender::io::serialize::Value::as_dictionary_value(), blender::bke::AttributeAccessor::contains(), blender::io::serialize::ArrayValue::elements(), load_attributes(), load_geometry(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_int(), read_blob_simple_gspan(), and try_load_instances().
Referenced by load_geometry(), and try_load_instances().
|
static |
Definition at line 836 of file bake_items_serialize.cc.
References blender::BKE_id_free(), blender::BLI_addtail(), blender::BLI_strdupn(), blender::io::serialize::ArrayValue::elements(), load_attributes(), load_materials(), load_texspace(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_int(), blender::io::serialize::DictionaryValue::lookup_str(), blender::bke::mesh_new_no_attributes(), blender::bDeformGroup::name, read_blob_shared_simple_span(), blender::io::serialize::String, STRNCPY_UTF8, and try_load_mesh().
Referenced by load_geometry(), and try_load_mesh().
|
static |
Definition at line 575 of file bake_items_serialize.cc.
References blender::bke::PointCloudRuntime::bake_materials, blender::BKE_id_free(), load_attributes(), load_materials(), blender::io::serialize::DictionaryValue::lookup_array(), blender::io::serialize::DictionaryValue::lookup_dict(), blender::io::serialize::DictionaryValue::lookup_int(), blender::bke::pointcloud_new_no_attributes(), blender::Points, blender::PointCloud::runtime, and try_load_pointcloud().
Referenced by load_geometry(), and try_load_pointcloud().
|
nodiscard |
Definition at line 87 of file bake_geometry_nodes_modifier_pack.cc.
References blender::BKE_reportf(), blender::BLI_file_ensure_parent_dir_exists(), BLI_path_join, blender::NodesModifierPackedBake::blob_files, blender::NodesModifierPackedBake::blob_files_num, blender::bke::bake::BakePath::blobs_dir, blender::StringRefNull::c_str(), FILE_MAX, blender::bke::bake::BakePath::meta_dir, blender::NodesModifierPackedBake::meta_files, blender::NodesModifierPackedBake::meta_files_num, blender::RPT_ERROR, and unpack_bake_to_disk().
Referenced by unpack_bake_to_disk(), and unpack_geometry_nodes_bake().
| UnpackGeometryNodesBakeResult blender::bke::bake::unpack_geometry_nodes_bake | ( | Main & | bmain, |
| ReportList * | reports, | ||
| Object & | object, | ||
| NodesModifierData & | nmd, | ||
| NodesModifierBake & | bake, | ||
| ePF_FileStatus | how ) |
Definition at line 167 of file bake_geometry_nodes_modifier_pack.cc.
References blender::BKE_main_blendfile_path(), blender::BKE_path_template_escape(), blender::BKE_report(), BlendFileNotSaved, blender::BLI_delete(), blender::BLI_path_abs(), blender::BLI_strdup(), blender::NodesModifierRuntime::cache, blender::DEG_id_tag_update(), disk_bake_exists(), Error, FILE_MAX, blender::bke::bake::BakePath::from_single_root(), get_default_node_bake_directory(), get_node_bake_path(), ID_BLEND_PATH, blender::ID_RECALC_GEOMETRY, blender::NODES_MODIFIER_BAKE_CUSTOM_PATH, blender::NODES_MODIFIER_BAKE_TARGET_DISK, blender::nodes_modifier_packed_bake_free(), NoPackedData, blender::PF_KEEP, blender::PF_REMOVE, blender::PF_USE_LOCAL, blender::PF_USE_ORIGINAL, blender::PF_WRITE_LOCAL, blender::PF_WRITE_ORIGINAL, blender::RPT_ERROR, blender::NodesModifierData::runtime, blender::StringRef::StringRef(), blender::STRNCPY(), Success, unpack_bake_to_disk(), and unpack_geometry_nodes_bake().
Referenced by blender::BKE_packedfile_unpack_all(), unpack_geometry_nodes_bake(), and blender::ed::object::bake_simulation::unpack_single_bake_exec().
|
static |
Definition at line 661 of file bake_values.cc.
References blender::bke::SocketValueVariant::get(), blender::bke::SocketValueVariant::get_if(), blender::bke::SocketValueVariant::is_field(), blender::bke::SocketValueVariant::is_list(), blender::bke::SocketValueVariant::is_single(), blender::bke::SocketValueVariant::is_volume_grid(), blender::GPointer::type(), and value_variant_valid_for_socket().
Referenced by blender::bke::bake::BakeValues::to_runtime_values(), and value_variant_valid_for_socket().
|
static |
Definition at line 369 of file bake_items_serialize.cc.
References blender::data, write_blob_raw_bytes(), and blender::bke::bake::BlobWriteSharing::write_deduplicated().
Referenced by serialize_single_value(), write_blob_raw_bytes(), and write_blob_simple_gspan().
|
static |
Definition at line 406 of file bake_items_serialize.cc.
References blender::data, write_blob_shared_simple_gspan(), write_blob_simple_gspan(), and blender::bke::bake::BlobWriteSharing::write_implicitly_shared().
Referenced by serialize_attributes(), serialize_curves_geometry(), serialize_geometry_set(), serialize_list(), and write_blob_shared_simple_gspan().
|
static |
Definition at line 392 of file bake_items_serialize.cc.
References blender::data, write_blob_raw_bytes(), and write_blob_simple_gspan().
Referenced by serialize_geometry_set(), write_blob_shared_simple_gspan(), and write_blob_simple_gspan().
|
staticconstexpr |
Anonymous attributes are renamed before they are written to the bake. This simplifies the names written to the bake and ensures that anonymous attributes are always handled explicitly.
Definition at line 48 of file bake_values.cc.
Referenced by blender::bke::bake::BakeToRuntimeValue::scan().
|
staticconstexpr |
Definition at line 2031 of file bake_items_serialize.cc.
Referenced by deserialize_bake(), and serialize_bake().