Struct vulkano::framebuffer::LayoutAttachmentDescription[][src]

pub struct LayoutAttachmentDescription {
    pub format: Format,
    pub samples: u32,
    pub load: LoadOp,
    pub store: StoreOp,
    pub stencil_load: LoadOp,
    pub stencil_store: StoreOp,
    pub initial_layout: ImageLayout,
    pub final_layout: ImageLayout,
}

Describes an attachment that will be used in a render pass.

Fields

Format of the image that is going to be binded.

Number of samples of the image that is going to be binded.

What the implementation should do with that attachment at the start of the render pass.

What the implementation should do with that attachment at the end of the render pass.

Equivalent of load for the stencil component of the attachment, if any. Irrelevant if there is no stencil component.

Equivalent of store for the stencil component of the attachment, if any. Irrelevant if there is no stencil component.

Layout that the image is going to be in at the start of the renderpass.

The vulkano library will automatically switch to the correct layout if necessary, but it is more efficient to set this to the correct value.

Layout that the image will be transitioned to at the end of the renderpass.

Methods

impl LayoutAttachmentDescription
[src]

Returns true if this attachment is compatible with another attachment, as defined in the Render Pass Compatibility section of the Vulkan specs.

Trait Implementations

impl Debug for LayoutAttachmentDescription
[src]

Formats the value using the given formatter. Read more

impl Clone for LayoutAttachmentDescription
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations