|
Blender V4.3
|
#include <BKE_bake_items_serialize.hh>
Inherits blender::NonCopyable, and blender::NonMovable.
Public Member Functions | |
| ~BlobReadSharing () | |
| std::optional< ImplicitSharingInfoAndData > | read_shared (const io::serialize::DictionaryValue &io_data, FunctionRef< std::optional< ImplicitSharingInfoAndData >()> read_fn) const |
Avoids loading the same data multiple times by caching and sharing previously read buffers.
Definition at line 135 of file BKE_bake_items_serialize.hh.
| blender::bke::bake::BlobReadSharing::~BlobReadSharing | ( | ) |
Definition at line 216 of file bake_items_serialize.cc.
|
nodiscard |
Check if the data identified by io_data has been read before or load it now.
Definition at line 262 of file bake_items_serialize.cc.
References data, lock, and blender::io::serialize::JsonFormatter::serialize().
Referenced by blender::bke::bake::read_blob_shared_simple_gspan().