Struct Manager

Inheritance Relationships

Base Types

Struct Documentation

struct Manager : public CE::Assets::Cache::Store<const Asset, std::string>, public CE::State::Singleton<Manager>

Declaration: final

Qualified 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.

void validate(const std::vector<Manifest> &manifests, CE::Rendering::Resources::Provider &provider, bool replace = false) const
void load(const std::vector<Manifest> &manifests, CE::Rendering::Resources::Provider &provider, bool replace = false)