Cogs.Core
TransparencyMergeTask.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 bool clear = false;
20
21 private:
22 CachedEffect* effect = nullptr;
23 CachedEffect* effectPrev = nullptr;
24 BufferHandle parameterHandle;
25
26 GlobalBinding bindings;
28 };
29
30}
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.