Cogs.Core
Source
Renderer
Tasks
ComputeTask.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
ComputeTask
:
public
ProcessTask
12
{
13
virtual
~ComputeTask
() {}
14
void
initialize(
RenderTaskContext
* context)
override
;
15
virtual
void
initialize(
RenderTaskContext
* context,
const
RenderTaskDefinition
& taskDefinition);
16
void
cleanup(
RenderTaskContext
* context)
override
;
17
Cogs::ResourceStatus
checkReady
(
RenderTaskContext
* context)
override
;
18
void
apply(
RenderTaskContext
* context)
override
;
19
20
protected
:
21
Cogs::ResourceStatus
effectStatus =
Cogs::ResourceStatus::Pending
;
22
};
23
}
24
}
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::ComputeTask
Definition:
ComputeTask.h:12
Cogs::Core::ComputeTask::checkReady
Cogs::ResourceStatus checkReady(RenderTaskContext *context) override
Check if the task is ready to be applied, e.g.
Definition:
ComputeTask.cpp:131
Cogs::Core::ProcessTask
Definition:
ProcessTask.h:55
Cogs::Core::RenderTaskContext
Definition:
RenderTask.h:53
Cogs::Core::RenderTaskDefinition
Definition:
RenderPipelineDefinition.h:80
Generated by
1.9.6