CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUAttachmentDescriptor Struct Referencefinal

Render target attachment descriptor structure. More...

#include <CeresEngine/RenderAPI/GPURenderTarget.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

GPUAttachmentType type = GPUAttachmentType::Color
 Specifies for which output information the image attachment is to be used, e.g.
 
GPUImagePtr image = nullptr
 Pointer to the image which is to be used as target output.
 
GPUImageViewDescriptor imageView = {}
 Specifies the image subresource, i.e.
 

Detailed Description

Render target attachment descriptor structure.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUAttachmentDescriptor::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ image

GPUImagePtr CeresEngine::GPUAttachmentDescriptor::image = nullptr

Pointer to the image which is to be used as target output.

By default null.

Remarks
If this is null, the attribute 'type' must not be AttachmentType::Color. The image must also have been created with the flag 'ImageUsage::Attachment'.

◆ imageView

GPUImageViewDescriptor CeresEngine::GPUAttachmentDescriptor::imageView = {}

Specifies the image subresource, i.e.

MIP-map level and array layer range. By default only the first MIP-map level and first array layer is addressed.

Remarks
For render targets, numMipLevels of the ImageSubresource structure must always be 1, i.e. render targets attachments can only render to a single MIP-map at a time.

◆ type

GPUAttachmentType CeresEngine::GPUAttachmentDescriptor::type = GPUAttachmentType::Color

Specifies for which output information the image attachment is to be used, e.g.

for color or depth information. By default AttachmentType::Color.


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