|
CeresEngine 0.2.0
A game development framework
|
A structure that describes how and what resources are used by a render task. More...
#include <CeresEngine/Renderer/RenderGraph/RenderTask.hpp>
Classes | |
| struct | AttachmentResourceInfo |
| A structure that describes a attachment resource. More... | |
| struct | RealizedResourceInfo |
| A structure that describes a resource realization. More... | |
| struct | ShaderResourceInfo |
| A structure that describes a shader resource. More... | |
| struct | UnrealizedResourceInfo |
| A structure that describes a resource unrealization. More... | |
Public Member Functions | |
| bool | uses (const RenderResource &resource) const |
| Checks if the given resource is used by the render task. | |
| bool | reads (const RenderResource &resource) const |
| Checks if the given resource is read in a shader by the render task. | |
| bool | writes (const RenderResource &resource) const |
| Checks if the given resource is written in a shader by the render task. | |
| const AttachmentResourceInfo * | getAttachmentInfo (UInt32 attachmentIdx) const |
Finds the AttachmentResourceInfo structure for the attachment at index attachmentIdx | |
| const AttachmentResourceInfo * | getAttachmentInfo (const ImageRenderResource &resource) const |
Finds the AttachmentResourceInfo structure for the attachment using resource. | |
| bool | realizes (const RenderResource &resource) const |
| Checks if a resource is realized for this render task. | |
| bool | unrealizes (const RenderResource &resource) const |
| Checks if a resource is unrealized for this render task. | |
| RenderResource & | getResource (const Slot &slot) const |
| Gets the current resource instance for the given slot. | |
Public Attributes | |
| Vector< ShaderResourceInfo > | shaderReads |
| A list of resources that are read by shaders. | |
| Vector< ShaderResourceInfo > | shaderWrites |
| A list of resources that are written by shaders. | |
| Vector< AttachmentResourceInfo > | colorAttachments |
| A list of resources that are used as color attachments. | |
| AttachmentResourceInfo | depthAttachment |
| A resource that is used as depth attachment. | |
| AttachmentResourceInfo | stencilAttachment |
| A resource that is used as stencil attachment. | |
| Vector< RealizedResourceInfo > | realizations |
| A list of resources that will be realized for this task. | |
| Vector< UnrealizedResourceInfo > | unrealizations |
| A list of resources that will be unrealized for this task. | |
A structure that describes how and what resources are used by a render task.
| const AttachmentResourceInfo * CeresEngine::RenderTaskResourceUsage::getAttachmentInfo | ( | const ImageRenderResource & | resource | ) | const |
Finds the AttachmentResourceInfo structure for the attachment using resource.
| resource | The attachment image resource. |
AttachmentResourceInfo or nullptr if no such attachment exists. | const AttachmentResourceInfo * CeresEngine::RenderTaskResourceUsage::getAttachmentInfo | ( | UInt32 | attachmentIdx | ) | const |
Finds the AttachmentResourceInfo structure for the attachment at index attachmentIdx
| attachmentIdx | The attachment index to get information for. |
AttachmentResourceInfo or nullptr if no such attachment exists. | RenderResource & CeresEngine::RenderTaskResourceUsage::getResource | ( | const Slot & | slot | ) | const |
Gets the current resource instance for the given slot.
| bool CeresEngine::RenderTaskResourceUsage::reads | ( | const RenderResource & | resource | ) | const |
Checks if the given resource is read in a shader by the render task.
| resource | The resource to check for usage. |
true if the resource is read by the render task. | bool CeresEngine::RenderTaskResourceUsage::realizes | ( | const RenderResource & | resource | ) | const |
Checks if a resource is realized for this render task.
| resource | The resource to check for realization. |
true if this resource is realized for this render task. | bool CeresEngine::RenderTaskResourceUsage::unrealizes | ( | const RenderResource & | resource | ) | const |
Checks if a resource is unrealized for this render task.
| resource | The resource to check for unrealization. |
true if this resource is unrealized for this render task. | bool CeresEngine::RenderTaskResourceUsage::uses | ( | const RenderResource & | resource | ) | const |
Checks if the given resource is used by the render task.
| resource | The resource to check for usage. |
true if the resource is used by the render task. | bool CeresEngine::RenderTaskResourceUsage::writes | ( | const RenderResource & | resource | ) | const |
Checks if the given resource is written in a shader by the render task.
| resource | The resource to check for usage. |
true if the resource is written by the render task. | Vector<AttachmentResourceInfo> CeresEngine::RenderTaskResourceUsage::colorAttachments |
A list of resources that are used as color attachments.
| AttachmentResourceInfo CeresEngine::RenderTaskResourceUsage::depthAttachment |
A resource that is used as depth attachment.
| Vector<RealizedResourceInfo> CeresEngine::RenderTaskResourceUsage::realizations |
A list of resources that will be realized for this task.
| Vector<ShaderResourceInfo> CeresEngine::RenderTaskResourceUsage::shaderReads |
A list of resources that are read by shaders.
| Vector<ShaderResourceInfo> CeresEngine::RenderTaskResourceUsage::shaderWrites |
A list of resources that are written by shaders.
| AttachmentResourceInfo CeresEngine::RenderTaskResourceUsage::stencilAttachment |
A resource that is used as stencil attachment.
| Vector<UnrealizedResourceInfo> CeresEngine::RenderTaskResourceUsage::unrealizations |
A list of resources that will be unrealized for this task.