|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Registry store for skin/skeleton binding handles. More...
#include <AssetRegistry.h>
Classes | |
| struct | Record |
| Stored metadata for one skin handle slot. More... | |
Public Member Functions | |
| SkinStore (AssetManager *assetManager=nullptr) | |
| Creates a skin store backed by an optional asset manager. | |
| void | setAssetManager (AssetManager *assetManager) |
| Sets the asset manager used when new skin handles request payload loading. | |
| Assets::SkinHandle | load (const Asset::MeshPath &skinPath) |
| Gets or creates a stable handle for an authored skin source path. | |
| bool | isValid (Assets::SkinHandle handle) const |
| Checks whether a skin handle refers to a live slot in this store. | |
| const Asset::MeshPath * | path (Assets::SkinHandle handle) const |
| Returns the authored skin path for a skin handle. | |
| Assets::Skin * | payload (Assets::SkinHandle handle) const |
| Resolves a skin handle to its loaded payload behind the manager boundary. | |
Static Private Member Functions | |
| static std::string | keyFor (const Asset::MeshPath &skinPath) |
| Builds the deduplication key for a skin source path and skin name. | |
Private Attributes | |
| AssetManager * | assetManager_ = nullptr |
| Optional bridge used to request skin refs. | |
| std::vector< Record > | records_ |
| Slot storage indexed by SkinHandle::index. | |
| std::unordered_map< std::string, uint32_t > | pathToIndex_ |
| Deduplication map from keyFor() to slot index. | |
Registry store for skin/skeleton binding handles.
SkinStore deduplicates authored skin paths (source glTF file plus skin name), returns stable SkinHandle values, and can resolve a handle back to its loaded skin payload.
Definition at line 510 of file AssetRegistry.h.
|
explicit |
Creates a skin store backed by an optional asset manager.
| assetManager | Asset manager used to request skin payload loads, or nullptr for handle-only use. |
|
nodiscard |
Checks whether a skin handle refers to a live slot in this store.
| handle | Handle to validate. |
|
staticnodiscardprivate |
Builds the deduplication key for a skin source path and skin name.
| skinPath | Skin source path and skin name. |
|
nodiscard |
Gets or creates a stable handle for an authored skin source path.
| skinPath | Engine-relative source path and skin name. |
|
nodiscard |
Returns the authored skin path for a skin handle.
| handle | Handle to look up. |
|
nodiscard |
Resolves a skin handle to its loaded payload behind the manager boundary.
| handle | Handle to resolve. |
| void Engine::Core::SkinStore::setAssetManager | ( | AssetManager * | assetManager | ) |
Sets the asset manager used when new skin handles request payload loading.
| assetManager | Asset manager to use, or nullptr to disable payload load requests. |
|
private |
Optional bridge used to request skin refs.
Definition at line 572 of file AssetRegistry.h.
|
private |
Deduplication map from keyFor() to slot index.
Definition at line 574 of file AssetRegistry.h.
|
private |
Slot storage indexed by SkinHandle::index.
Definition at line 573 of file AssetRegistry.h.