|
Cogs.Core
|
Public Member Functions | |
| virtual void | initialize (RenderTaskContext *context) override |
| void | initialize (RenderTaskContext *context, const RenderTaskDefinition &taskDefinition) |
| Cogs::ResourceStatus | checkReady (RenderTaskContext *context) override |
| Check if the task is ready to be applied, e.g. | |
| void | apply (RenderTaskContext *context) override |
Public Member Functions inherited from Cogs::Core::ProcessTask | |
| EffectDescription | createEffectDesc (RenderTaskContext *context) |
| void | addProperty (ProcessTaskProperty &property) |
| virtual void | initialize (RenderTaskContext *context) override |
| virtual void | initialize (RenderTaskContext *context, const RenderTaskDefinition &taskDefinition) |
| void | cleanup (RenderTaskContext *context) override |
| void | setProperties (RenderTaskContext *context, Cogs::Core::RenderTexture *targetSource=nullptr) |
Public Member Functions inherited from Cogs::Core::RenderTask | |
| virtual void | initialize (RenderTaskContext *) |
| virtual void | cleanup (RenderTaskContext *) |
| virtual void | apply (RenderTaskContext *)=0 |
| virtual Cogs::ResourceStatus | checkReady (RenderTaskContext *) |
| Check if the task is ready to be applied, e.g. | |
| bool | isStatic () const |
Protected Attributes | |
| std::string | scopeName |
| Cogs::ResourceStatus | effectStatus = Cogs::ResourceStatus::Pending |
| InputLayoutHandle | inputLayout |
| SamplerStateBindingHandle | samplerStateBindings [4] |
| SamplerStateHandle | samplerStates [4] |
Definition at line 11 of file PostProcessTask.h.
|
inlinevirtual |
Definition at line 13 of file PostProcessTask.h.
|
overridevirtual |
Implements Cogs::Core::RenderTask.
Definition at line 127 of file PostProcessTask.cpp.
|
overridevirtual |
Check if the task is ready to be applied, e.g.
that any effects it depends on have finished loading.
This is called unconditionally for every task, every frame, regardless of the readiness of other tasks - so that any pending loads triggered here get a chance to start as early as possible, instead of being serialized behind other tasks becoming ready first.
Reimplemented from Cogs::Core::RenderTask.
Definition at line 103 of file PostProcessTask.cpp.
References Cogs::IEffects::checkEffect(), Cogs::Error, Cogs::IGraphicsDevice::getBuffers(), Cogs::IGraphicsDevice::getEffects(), Cogs::IEffects::getSamplerStateBinding(), Cogs::Core::HandleIsValid(), Cogs::IBuffers::loadInputLayout(), Cogs::Handle_t< SamplerStateBindingTag >::NoHandle, and Cogs::Ready.
|
overridevirtual |
Reimplemented from Cogs::Core::ProcessTask.
Definition at line 36 of file PostProcessTask.cpp.
|
virtual |
Reimplemented from Cogs::Core::ProcessTask.
Definition at line 41 of file PostProcessTask.cpp.
| bool Cogs::Core::PostProcessTask::clearColor = false |
Definition at line 19 of file PostProcessTask.h.
| bool Cogs::Core::PostProcessTask::clearDepth = false |
Definition at line 20 of file PostProcessTask.h.
| bool Cogs::Core::PostProcessTask::clearToDefault = true |
Definition at line 22 of file PostProcessTask.h.
| bool Cogs::Core::PostProcessTask::depthTest = false |
Definition at line 27 of file PostProcessTask.h.
|
protected |
Definition at line 32 of file PostProcessTask.h.
|
protected |
Definition at line 34 of file PostProcessTask.h.
|
protected |
Definition at line 35 of file PostProcessTask.h.
|
protected |
Definition at line 36 of file PostProcessTask.h.
|
protected |
Definition at line 30 of file PostProcessTask.h.
| bool Cogs::Core::PostProcessTask::viewportFromTarget = false |
Definition at line 23 of file PostProcessTask.h.
| bool Cogs::Core::PostProcessTask::writeColor = true |
Definition at line 25 of file PostProcessTask.h.
| bool Cogs::Core::PostProcessTask::writeDepth = false |
Definition at line 26 of file PostProcessTask.h.