AttachmentDescription

Describes an image attachment in a render pass or framebuffer

Members

Functions

withMayAlias
AttachmentDescription withMayAlias()

Set mayAlias to Yes

withSamples
AttachmentDescription withSamples(uint samples)

Set samples to the description

Static functions

color
AttachmentDescription color(Format format, AttachmentOps ops, Trans!ImageLayout layoutTrans)

Build a color attachment description

depth
AttachmentDescription depth(Format format, AttachmentOps ops, Trans!ImageLayout layoutTrans)

Build a depth attachment description

depthStencil
AttachmentDescription depthStencil(Format format, AttachmentOps depthOps, AttachmentOps stencilOps, Trans!ImageLayout layoutTrans)

Build a depth-stencil attachment description

Variables

format
Format format;

the format of the attachment

layoutTrans
Trans!ImageLayout layoutTrans;

The ImageLayout transition of the attachment. layoutTrans.from is the initial layout of the attachment when it enters the render pass. it is up to the programmer to ensure that the attachment will be in this state. layoutTrans.to is the layout of the attachment when it exits the render pass.

mayAlias
Flag!"mayAlias" mayAlias;

Set mayAlias to Yes if a part of the attachment memory is shared with parts of other attachments in the same render pass.

ops
AttachmentOps ops;

the operations to be performed on the attachment color and depth attachments may only need to define the ops member depth-stencil attachments must define both ops (for depth) and stencilOps members.

samples
uint samples;

Sample count of the attachment Must be a power of two between 1 and 64

stencilOps
AttachmentOps stencilOps;

the operations to be performed on the attachment color and depth attachments may only need to define the ops member depth-stencil attachments must define both ops (for depth) and stencilOps members.

Meta