Struct ProgramCache

Inheritance Relationships

Base Types

Struct Documentation

struct ProgramCache : public CE::Assets::Cache::Store<CE::Rendering::Resources::Program>, public CE::State::Singleton<ProgramCache>

Declaration: final

Retained linked programs under exact path keys.

Load/reload on the active provider/loading owner; borrowed inputs are needed only through the call. Camera/draw state is mutable program access on the backend owner.

Public Functions

ProgramCache() = default
~ProgramCache() override = default
void load(const std::filesystem::path &key, const std::vector<std::filesystem::path> &stages, CE::Rendering::Resources::Provider &provider)
void reload(const std::filesystem::path &key, const std::vector<std::filesystem::path> &stages, CE::Rendering::Resources::Provider &provider)