Cogs.Core
DeferredLightingTask.h
1#pragma once
2
3#include "RenderTask.h"
4
5#include "Rendering/Common.h"
6
7#include "Renderer/EffectBinding.h"
8
9namespace Cogs::Core
10{
11 struct CachedEffect;
12
14 {
15 void cleanup(RenderTaskContext* context) override;
17 void apply(RenderTaskContext* context) override;
18
19 static void initializeGlobalBindings(RenderTaskContext* context, struct CachedEffect* effect, GlobalBinding& bindings);
20 static void applyGlobalBindings(RenderTaskContext* context, GlobalBinding& bindings);
21
22 bool clear = true;
23 bool clearToDefault = false;
24
25 private:
26 CachedEffect* effect = nullptr;
27 CachedEffect* effectPrev = nullptr;
28 GlobalBinding bindings;
29
31 };
32
33}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
ResourceStatus
Status of an asynchronously loaded resource, such as an effect or a pipeline.
Definition: Common.h:198
@ Pending
The resource is still loading.
Cogs::ResourceStatus checkReady(RenderTaskContext *context) override
Check if the task is ready to be applied, e.g.