![]() |
LLGL 0.05 Beta
|
Render target descriptor structure. More...
#include <RenderTargetFlags.h>
Public Attributes | |
| const char * | debugName = nullptr |
| Optional name for debugging purposes. By default null. | |
| const RenderPass * | renderPass = nullptr |
| Optional render pass object that will be used with the render target. By default null. | |
| Extent2D | resolution |
| Specifies the resolution of the render targets. | |
| std::uint32_t | samples = 1 |
| Number of samples for the render targets. By default 1. | |
| std::uint32_t | views = 1 |
| Specifies the number of views for multiview (single-pass layered) rendering. By default 1. | |
| AttachmentDescriptor | colorAttachments [LLGL_MAX_NUM_COLOR_ATTACHMENTS] |
| Specifies the list of color attachment descriptors. | |
| AttachmentDescriptor | resolveAttachments [LLGL_MAX_NUM_COLOR_ATTACHMENTS] |
| Specifies the list of attachment descriptors for which the corresponding multi-sampled color attachments will be resolved into after a render pass. | |
| AttachmentDescriptor | depthStencilAttachment |
| Specifies the depth-stencil attachment descriptor. | |
| AttachmentDescriptor | depthStencilResolveAttachment |
| Specifies the attachment descriptor the multi-sampled depth-stencil attachment will be resolved into after a render pass. | |
Render target descriptor structure.
| AttachmentDescriptor LLGL::RenderTargetDescriptor::colorAttachments[LLGL_MAX_NUM_COLOR_ATTACHMENTS] |
Specifies the list of color attachment descriptors.
| const char* LLGL::RenderTargetDescriptor::debugName = nullptr |
Optional name for debugging purposes. By default null.
| AttachmentDescriptor LLGL::RenderTargetDescriptor::depthStencilAttachment |
Specifies the depth-stencil attachment descriptor.
| AttachmentDescriptor LLGL::RenderTargetDescriptor::depthStencilResolveAttachment |
Specifies the attachment descriptor the multi-sampled depth-stencil attachment will be resolved into after a render pass.
| const RenderPass* LLGL::RenderTargetDescriptor::renderPass = nullptr |
Optional render pass object that will be used with the render target. By default null.
| Extent2D LLGL::RenderTargetDescriptor::resolution |
Specifies the resolution of the render targets.
| AttachmentDescriptor LLGL::RenderTargetDescriptor::resolveAttachments[LLGL_MAX_NUM_COLOR_ATTACHMENTS] |
Specifies the list of attachment descriptors for which the corresponding multi-sampled color attachments will be resolved into after a render pass.
| std::uint32_t LLGL::RenderTargetDescriptor::samples = 1 |
Number of samples for the render targets. By default 1.
GetSamples function of the RenderTarget interface. renderPass is specified, the number of samples from that RenderPass must match this number of samples. | std::uint32_t LLGL::RenderTargetDescriptor::views = 1 |
Specifies the number of views for multiview (single-pass layered) rendering. By default 1.
views consecutive array layers of its attachments at once (single-pass stereo / cascaded shadow maps); see RenderPassDescriptor::views for details. All attachments that reference a texture must be array textures with at least arrayLayer + views layers. renderPass is specified, the number of views is taken from that RenderPass and this field is ignored (they must be consistent). If renderPass is null, the default render pass created for this render target uses this view count.