CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::RenderTaskCompiler Class Reference

#include <CeresEngine/Renderer/RenderGraph/RenderTask.hpp>

Public Member Functions

 RenderTaskCompiler (RenderTaskResourceUsage &resourceUsage)
 
RenderTaskCompiler & reads (RenderResource &resource)
 Adds a new resource that will be used for reading in a shader.
 
RenderTaskCompiler & writes (RenderResource &resource)
 Adds a new resource that will be used for writing in a shader.
 
RenderTaskCompiler & addColorAttachment (ImageRenderResource &image, GPUAttachmentLoadOp loadOp=GPUAttachmentLoadOp::Load, GPUAttachmentStoreOp storeOp=GPUAttachmentStoreOp::Store)
 Adds a new resource that will be used as a color attachment in a render pass.
 
RenderTaskCompiler & setDepthAttachment (ImageRenderResource &image, GPUAttachmentLoadOp loadOp=GPUAttachmentLoadOp::Load, GPUAttachmentStoreOp storeOp=GPUAttachmentStoreOp::Store)
 Sets a resource that will be used as depth attachment in a render pass.
 
RenderTaskCompiler & setStencilAttachment (ImageRenderResource &image, GPUAttachmentLoadOp loadOp=GPUAttachmentLoadOp::Load, GPUAttachmentStoreOp storeOp=GPUAttachmentStoreOp::Store)
 Sets a resource that will be used as stencil attachment in a render pass.
 

Private Attributes

RenderTaskResourceUsage & mResourceUsage
 

Constructor & Destructor Documentation

◆ RenderTaskCompiler()

CeresEngine::RenderTaskCompiler::RenderTaskCompiler ( RenderTaskResourceUsage &  resourceUsage)
inline

Member Function Documentation

◆ addColorAttachment()

RenderTaskCompiler & CeresEngine::RenderTaskCompiler::addColorAttachment ( ImageRenderResource &  image,
GPUAttachmentLoadOp  loadOp = GPUAttachmentLoadOp::Load,
GPUAttachmentStoreOp  storeOp = GPUAttachmentStoreOp::Store 
)

Adds a new resource that will be used as a color attachment in a render pass.

Parameters
imageThe image to be used as a color attachment.
loadOpThe load operation to be performed when beginning the render pass.
storeOpThe store operation to be performed when finishing the render pass.
Returns
This

◆ reads()

RenderTaskCompiler & CeresEngine::RenderTaskCompiler::reads ( RenderResource &  resource)

Adds a new resource that will be used for reading in a shader.

Parameters
resourceThe resource to be read.
Returns
This

◆ setDepthAttachment()

RenderTaskCompiler & CeresEngine::RenderTaskCompiler::setDepthAttachment ( ImageRenderResource &  image,
GPUAttachmentLoadOp  loadOp = GPUAttachmentLoadOp::Load,
GPUAttachmentStoreOp  storeOp = GPUAttachmentStoreOp::Store 
)

Sets a resource that will be used as depth attachment in a render pass.

Parameters
imageThe image to be used as a depth attachment.
loadOpThe load operation to be performed when beginning the render pass.
storeOpThe store operation to be performed when finishing the render pass.
Returns
This

◆ setStencilAttachment()

RenderTaskCompiler & CeresEngine::RenderTaskCompiler::setStencilAttachment ( ImageRenderResource &  image,
GPUAttachmentLoadOp  loadOp = GPUAttachmentLoadOp::Load,
GPUAttachmentStoreOp  storeOp = GPUAttachmentStoreOp::Store 
)

Sets a resource that will be used as stencil attachment in a render pass.

Parameters
imageThe image to be used as a stencil attachment.
loadOpThe load operation to be performed when beginning the render pass.
storeOpThe store operation to be performed when finishing the render pass.
Returns
This

◆ writes()

RenderTaskCompiler & CeresEngine::RenderTaskCompiler::writes ( RenderResource &  resource)

Adds a new resource that will be used for writing in a shader.

Parameters
resourceThe resource to be written.
Returns
This

Member Data Documentation

◆ mResourceUsage

RenderTaskResourceUsage& CeresEngine::RenderTaskCompiler::mResourceUsage
private

The documentation for this class was generated from the following file: