|
Blender V4.3
|
#include <BKE_cryptomatte.hh>
Public Member Functions | |
| uint32_t | add_ID (const ID &id) |
| void | add_hash (blender::StringRef name, CryptomatteHash cryptomatte_hash) |
| std::string | manifest () const |
| std::optional< std::string > | operator[] (float encoded_hash) const |
Static Public Member Functions | |
| static std::unique_ptr< CryptomatteLayer > | read_from_manifest (blender::StringRefNull manifest) |
Public Attributes | |
| blender::Map< std::string, CryptomatteHash > | hashes |
Definition at line 96 of file BKE_cryptomatte.hh.
| void CryptomatteLayer::add_hash | ( | blender::StringRef | name, |
| CryptomatteHash | cryptomatte_hash ) |
Definition at line 548 of file cryptomatte.cc.
References add_hash(), BKE_cryptomatte_hash(), BLI_strnlen(), and MAX_NAME.
Referenced by blender::eevee::Cryptomatte::register_id(), and blender::eevee::Cryptomatte::sync_material().
| std::string CryptomatteLayer::manifest | ( | ) | const |
Definition at line 575 of file cryptomatte.cc.
References blender::bke::cryptomatte::manifest::to_manifest().
Referenced by BKE_cryptomatte_store_metadata(), and read_from_manifest().
| std::optional< std::string > CryptomatteLayer::operator[] | ( | float | encoded_hash | ) | const |
Definition at line 564 of file cryptomatte.cc.
References BKE_cryptomatte_hash_to_float(), hashes, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items().
|
static |
Definition at line 540 of file cryptomatte.cc.
References blender::bke::cryptomatte::manifest::from_manifest(), and manifest().
| blender::Map<std::string, CryptomatteHash> blender::bke::cryptomatte::CryptomatteLayer::hashes |
Definition at line 97 of file BKE_cryptomatte.hh.
Referenced by add_hash(), and operator[]().