Cogs.Core
PostProcessTask.h
1#pragma once
2
3#include "ProcessTask.h"
4
5#include "Rendering/Common.h"
6
7namespace Cogs
8{
9 namespace Core
10 {
12 {
13 virtual ~PostProcessTask() {}
14 virtual void initialize(RenderTaskContext* context) override;
15 void initialize(RenderTaskContext * context, const RenderTaskDefinition& taskDefinition);
17 void apply(RenderTaskContext * context) override;
18
19 bool clearColor = false;
20 bool clearDepth = false;
21
22 bool clearToDefault = true;
23 bool viewportFromTarget = false;
24
25 bool writeColor = true;
26 bool writeDepth = false;
27 bool depthTest = false;
28
29 protected:
30 std::string scopeName;
31
33
34 InputLayoutHandle inputLayout;
35 SamplerStateBindingHandle samplerStateBindings[4];
36 SamplerStateHandle samplerStates[4];
37 };
38 }
39}
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
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.