Struct vulkano::framebuffer::LayoutPassDescription [] [src]

pub struct LayoutPassDescription {
    pub color_attachments: Vec<(usize, ImageLayout)>,
    pub depth_stencil: Option<(usize, ImageLayout)>,
    pub input_attachments: Vec<(usize, ImageLayout)>,
    pub resolve_attachments: Vec<(usize, ImageLayout)>,
    pub preserve_attachments: Vec<usize>,
}

Describes one of the passes of a render pass.

Restrictions

All these restrictions are checked when the RenderPass object is created. TODO: that's not the case ^

  • The number of color attachments must be less than the limit of the physical device.
  • All the attachments in color_attachments and depth_stencil must have the same samples count.
  • If any attachment is used as both an input attachment and a color or depth/stencil attachment, then each use must use the same layout.
  • Elements of preserve_attachments must not be used in any of the other members.
  • If resolve_attachments is not empty, then all the resolve attachments must be attachments with 1 sample and all the color attachments must have more than 1 sample.
  • If resolve_attachments is not empty, all the resolve attachments must have the same format as the color attachments.
  • If the first use of an attachment in this renderpass is as an input attachment and the attachment is not also used as a color or depth/stencil attachment in the same subpass, then the loading operation must not be Clear.

Fields

Indices and layouts of attachments to use as color attachments.

Index and layout of the attachment to use as depth-stencil attachment.

Indices and layouts of attachments to use as input attachments.

If not empty, each color attachment will be resolved into each corresponding entry of this list.

If this value is not empty, it must be the same length as color_attachments.

Indices of attachments that will be preserved during this pass.

Trait Implementations

impl Debug for LayoutPassDescription
[src]

Formats the value using the given formatter.

impl Clone for LayoutPassDescription
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more