Add shader registry (#924)

This commit is contained in:
mwilsnd
2023-03-27 12:41:38 -05:00
committed by GitHub
parent 7c96e517c3
commit 1d8c4b527f
23 changed files with 416 additions and 11 deletions

View File

@@ -20,6 +20,8 @@ Programs::Programs(gfx::Context& context_, const ProgramParameters& programParam
Programs::~Programs() = default;
void Programs::registerWith([[maybe_unused]] gfx::ShaderRegistry& registry) noexcept {}
BackgroundLayerPrograms& Programs::getBackgroundLayerPrograms() noexcept {
if (!backgroundPrograms) {
backgroundPrograms = std::make_unique<BackgroundLayerPrograms>(context, programParameters);