Struct Manager
Defined in File shader-asset-mgr.h
Inheritance Relationships
Base Types
public CE::Assets::Cache::Store< const Asset, std::string >(Template Struct Store)public CE::State::Singleton< Manager >(Template Class Singleton)
Struct Documentation
-
struct Manager : public CE::Assets::Cache::Store<const Asset, std::string>, public CE::State::Singleton<Manager>
Declaration:
finalQualified identities share the existing provider domain.
Metadata and the resource it describes are published as one immutable generation.
Public Functions
-
std::shared_ptr<const Program> find_program(const std::string &id) const
Declaration:
[[nodiscard]]
-
std::shared_ptr<const CE::Rendering::Resources::Material> find_material(const std::string &id) const
Declaration:
[[nodiscard]]Look up an already loaded material without compiling or uploading resources.
The retained handle survives cache replacement/clearing; native use still obeys its provider lifetime. Lookup uses the cache lock and rejects an identity that belongs to a program rather than a material.
- Parameters:
id – Exact qualified namespace:name identity.
- Returns:
Retained immutable material, or null for a missing identity.
-
std::shared_ptr<const Program> find_program(const std::string &id) const