#include <CeresEngine/Renderer/RenderGraph/RenderTask.hpp>
|
| virtual void | execute (RenderGraphContext &context, GPUCommandBuffer &commandBuffer, GPURenderTarget &renderTarget)=0 |
| | Executes the graphics render task with the given commandBuffer and renderTarget.
|
| |
| virtual bool | isRenderPassDirty (GPURenderPass &renderPass) const |
| | Checks if the render pass is dirty and needs to be recreated.
|
| |
| virtual GPURenderPassPtr | createRenderPass (GPUDevice &device) |
| | Creates a new render pass instance for the render task.
|
| |
| virtual bool | isRenderTargetDirty (GPURenderTarget &renderTarget, GPURenderPass &renderPass) const |
| | Checks if the render target is dirty and needs to be recreated.
|
| |
| virtual GPURenderTargetPtr | createRenderTarget (GPUDevice &device, GPURenderPass &renderPass) |
| | Creates a new render target instance for the render task.
|
| |
| virtual void | compile (RenderTaskCompiler &compiler)=0 |
| | Compiles the render task.
|
| |
| virtual bool | shouldConnect (const Slot &slot, const Slot &targetSlot) const |
| | An internal method called whenever a new connection is being made.
|
| |
| virtual void | willConnect (Slot &slot, Slot &targetSlot) |
| | An internal method called before the slot is connected.
|
| |
| virtual void | didConnect (Slot &slot, Connection &connection) |
| | An internal method called after the slot is connected.
|
| |
| virtual bool | shouldDisconnect (const Slot &slot, const Connection &connection) const |
| | An internal method called whenever a new disconnection is being made.
|
| |
| virtual void | willDisconnect (Slot &slot, Connection &connection) |
| | An internal method called before the slot is disconnected.
|
| |
| virtual void | didDisconnect (Slot &slot, Connection &connection) |
| | An internal method called whenever the slot is disconnected.
|
| |
| ImageRenderResource & | create (const GPUImageDescriptor &descriptor) |
| |
| BufferRenderResource & | create (const GPUBufferDescriptor &descriptor) |
| |
◆ createRenderPass()
Creates a new render pass instance for the render task.
- Parameters
-
| device | The device in which the implementation should create the render pass instance from. |
◆ createRenderTarget()
Creates a new render target instance for the render task.
- Parameters
-
| device | The device in which the implementation should create the render target instance from. |
| renderPass | A reference to the current render pass. The implementation must use this render pass to create the new render target. |
◆ execute() [1/2]
◆ execute() [2/2]
◆ isRenderPassDirty()
Checks if the render pass is dirty and needs to be recreated.
- Parameters
-
| renderPass | A reference to the previous render pass. The implementation can use this to compare the existing render pass to check if it needs to recreate it. |
- Returns
true if the implementation wishes to recreate the render pass.
◆ isRenderTargetDirty()
Checks if the render target is dirty and needs to be recreated.
- Parameters
-
| renderTarget | A reference to the previous render target. The implementation can use this to compare the existing render target to check if it needs to recreate it. |
| renderPass | A reference to the current render pass. The implementation must use this render pass to create the new render target. |
- Returns
true if the implementation wishes to recreate the render target.
◆ RenderTask()
| CeresEngine::RenderTask::RenderTask |
( |
RenderGraph & |
renderGraph | ) |
|
|
inlineexplicit |
◆ mRenderPass
The cached render pass instance.
◆ mRenderTarget
The cached render target instance.
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/Renderer/RenderGraph/RenderTask.hpp