pub struct AttachmentDescription {
    pub format: Option<Format>,
    pub samples: SampleCount,
    pub load_op: LoadOp,
    pub store_op: StoreOp,
    pub stencil_load_op: LoadOp,
    pub stencil_store_op: StoreOp,
    pub initial_layout: ImageLayout,
    pub final_layout: ImageLayout,
    pub _ne: NonExhaustive,
}
Expand description

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

Fields

format: Option<Format>

The format of the image that is going to be bound.

The default value is None, which must be overridden.

samples: SampleCount

The number of samples of the image that is going to be bound.

The default value is SampleCount::Sample1.

load_op: LoadOp

What the implementation should do with the attachment at the start of the subpass that first uses it.

The default value is LoadOp::DontCare.

store_op: StoreOp

What the implementation should do with the attachment at the end of the subpass that last uses it.

The default value is StoreOp::DontCare.

stencil_load_op: LoadOp

The equivalent of load_op for the stencil component of the attachment, if any. Irrelevant if there is no stencil component.

The default value is LoadOp::DontCare.

stencil_store_op: StoreOp

The equivalent of store_op for the stencil component of the attachment, if any. Irrelevant if there is no stencil component.

The default value is StoreOp::DontCare.

initial_layout: ImageLayout

The layout that the image must in at the start of the render pass.

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

The default value is ImageLayout::Undefined, which must be overridden.

final_layout: ImageLayout

The layout that the image will be transitioned to at the end of the render pass.

The default value is ImageLayout::Undefined, which must be overridden.

_ne: NonExhaustive

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.