pub struct AttachmentDescription {
    pub flags: AttachmentDescriptionFlags,
    pub format: Format,
    pub samples: SampleCount,
    pub load_op: AttachmentLoadOp,
    pub store_op: AttachmentStoreOp,
    pub initial_layout: ImageLayout,
    pub final_layout: ImageLayout,
    pub stencil_load_op: Option<AttachmentLoadOp>,
    pub stencil_store_op: Option<AttachmentStoreOp>,
    pub stencil_initial_layout: Option<ImageLayout>,
    pub stencil_final_layout: Option<ImageLayout>,
    pub _ne: NonExhaustive,
}
Expand description

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

Fields§

§flags: AttachmentDescriptionFlags

Additional properties of the attachment.

The default value is empty.

§format: Format

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

The default value is Format::UNDEFINED.

§samples: SampleCount

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

The default value is SampleCount::Sample1.

§load_op: AttachmentLoadOp

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

The default value is AttachmentLoadOp::DontCare.

§store_op: AttachmentStoreOp

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

The default value is AttachmentStoreOp::DontCare.

§initial_layout: ImageLayout

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

The default value is ImageLayout::Undefined.

§final_layout: ImageLayout

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

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

§stencil_load_op: Option<AttachmentLoadOp>

The load_op for the stencil aspect of the attachment, if different.

The default value is None.

§stencil_store_op: Option<AttachmentStoreOp>

The store_op for the stencil aspect of the attachment, if different.

The default value is None.

§stencil_initial_layout: Option<ImageLayout>

The initial_layout for the stencil aspect of the attachment, if different.

stencil_initial_layout and stencil_final_layout must be either both None, or both Some.

If this is Some, then the separate_depth_stencil_layouts feature must be enabled on the device.

The default value is None.

§stencil_final_layout: Option<ImageLayout>

The final_layout for the stencil aspect of the attachment, if different.

stencil_initial_layout and stencil_final_layout must be either both None, or both Some.

If this is Some, then the separate_depth_stencil_layouts feature must be enabled on the device.

The default value is None.

§_ne: NonExhaustive

Trait Implementations§

source§

impl Clone for AttachmentDescription

source§

fn clone(&self) -> AttachmentDescription

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AttachmentDescription

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AttachmentDescription

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for AttachmentDescription

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.