Cogs.Core
ComputeTask.h
1#pragma once
2
3#include "ProcessTask.h"
4
5#include "Rendering/Common.h"
6
7namespace 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;
18 void apply(RenderTaskContext * context) override;
19
20 protected:
22 };
23 }
24}
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.