Cogs.Core
Source
Renderer
Tasks
PostProcessTask.h
1
#pragma once
2
3
#include "ProcessTask.h"
4
5
#include "Rendering/Common.h"
6
7
namespace
Cogs
8
{
9
namespace
Core
10
{
11
struct
PostProcessTask
:
public
ProcessTask
12
{
13
virtual
~PostProcessTask
() {}
14
virtual
void
initialize(
RenderTaskContext
* context)
override
;
15
void
initialize(
RenderTaskContext
* context,
const
RenderTaskDefinition
& taskDefinition);
16
Cogs::ResourceStatus
checkReady
(
RenderTaskContext
* context)
override
;
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
32
Cogs::ResourceStatus
effectStatus =
Cogs::ResourceStatus::Pending
;
33
34
InputLayoutHandle
inputLayout;
35
SamplerStateBindingHandle
samplerStateBindings[4];
36
SamplerStateHandle
samplerStates[4];
37
};
38
}
39
}
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::ResourceStatus
ResourceStatus
Status of an asynchronously loaded resource, such as an effect or a pipeline.
Definition:
Common.h:198
Cogs::ResourceStatus::Pending
@ Pending
The resource is still loading.
Cogs::Core::PostProcessTask
Definition:
PostProcessTask.h:12
Cogs::Core::PostProcessTask::checkReady
Cogs::ResourceStatus checkReady(RenderTaskContext *context) override
Check if the task is ready to be applied, e.g.
Definition:
PostProcessTask.cpp:103
Cogs::Core::ProcessTask
Definition:
ProcessTask.h:55
Cogs::Core::RenderTaskContext
Definition:
RenderTask.h:53
Cogs::Core::RenderTaskDefinition
Definition:
RenderPipelineDefinition.h:80
Cogs::Handle_t< InputLayoutTag >
Generated by
1.9.6