[][src]Struct bedrock::vk::VkAttachmentDescription

#[repr(C)]
pub struct VkAttachmentDescription {
    pub flags: VkAttachmentDescriptionFlags,
    pub format: VkFormat,
    pub samples: VkSampleCountFlags,
    pub loadOp: VkAttachmentLoadOp,
    pub storeOp: VkAttachmentStoreOp,
    pub stencilLoadOp: VkAttachmentLoadOp,
    pub stencilStoreOp: VkAttachmentStoreOp,
    pub initialLayout: VkImageLayout,
    pub finalLayout: VkImageLayout,
}

Fields

flags: VkAttachmentDescriptionFlags

A bitmask of VkAttachmentDescriptionFlagBits specifying additional properties of the attachment.

Possible Bitmasks

format: VkFormat

A VkFormat value specifying the format of the image that will be used for the attachment

samples: VkSampleCountFlags

The number of samples of the image as defined in VkSampleCountFlagBits

Possible Bitmasks

1, 2, 4, 8, 16, 32, 64

loadOp: VkAttachmentLoadOp

A VkAttachmentLoadOp value specifying how the contents of color and depth components of the attachment are treated at the beginning of the subpass where it is first used

Possible Values

Access Type Requirements

For attachments with a depth formatFor attachments with a color format
VK_ATTACHMENT_LOAD_OP_LOADVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BITVK_ACCESS_COLOR_ATTTACHMENT_READ_BIT
VK_ATTACHMENT_LOAD_OP_CLEARVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BITVK_ACCESS_COLOR_ATTTACHMENT_WRITE_BIT
VK_ATTACHMENT_LOAD_OP_DONT_CAREVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BITVK_ACCESS_COLOR_ATTTACHMENT_WRITE_BIT
storeOp: VkAttachmentStoreOp

A VkAttachmentStoreOp value specifying how the contents of color and depth components of the attachment are treated at the end of the subpass where it is last used.

Possible Values

Access Type Requirements

stencilLoadOp: VkAttachmentLoadOp

A VkAttachmentLoadOp value specifying how the contents of stencil components of the attachment are treated at the beginning of the subpass where it is first used

Possible Values

Access Type Requirements

stencilStoreOp: VkAttachmentStoreOp

A VkAttachmentStoreOp value specifying how the contents of stencil components of the attachment are treated at the end of the subpass where it is last used.

Possible Values

Access Type Requirements

initialLayout: VkImageLayout

The layout the attachment image subresource will be in when a render pass instance begins.

finalLayout: VkImageLayout

The layout the attachment image subresource will be transitioned to when a render pass instance ends. During a render pass instance, an attachment can use a different layout in each subpass, if desired.

Trait Implementations

impl Borrow<AttachmentDescription> for VkAttachmentDescription[src]

impl BorrowMut<AttachmentDescription> for VkAttachmentDescription[src]

impl Clone for VkAttachmentDescription[src]

impl Debug for VkAttachmentDescription[src]

impl Eq for VkAttachmentDescription[src]

impl PartialEq<VkAttachmentDescription> for VkAttachmentDescription[src]

impl StructuralEq for VkAttachmentDescription[src]

impl StructuralPartialEq for VkAttachmentDescription[src]

Auto Trait Implementations

impl RefUnwindSafe for VkAttachmentDescription

impl Send for VkAttachmentDescription

impl Sync for VkAttachmentDescription

impl Unpin for VkAttachmentDescription

impl UnwindSafe for VkAttachmentDescription

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.