[−][src]Struct bedrock::vk::VkAttachmentDescription
Fields
flags: VkAttachmentDescriptionFlags
A bitmask of VkAttachmentDescriptionFlagBits
specifying additional properties of the attachment.
Possible Bitmasks
- 0: No flags
VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT
: The attachment aliases the same device memory as other attachments
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
VK_ATTACHMENT_LOAD_OP_LOAD
: The previous contents of the image within the render area will be preserved.VK_ATTACHMENT_LOAD_OP_CLEAR
: The contents within the render area will be cleared to a uniform value, which is specified when a render pass instance is begun.VK_ATTACHMENT_LOAD_OP_DONT_CARE
: The previous contents within the area need not be preserved; the contents of the attachment will be undefined inside the render area.
Access Type Requirements
For attachments with a depth format | For attachments with a color format | |
---|---|---|
VK_ATTACHMENT_LOAD_OP_LOAD | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTTACHMENT_READ_BIT |
VK_ATTACHMENT_LOAD_OP_CLEAR | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_COLOR_ATTTACHMENT_WRITE_BIT |
VK_ATTACHMENT_LOAD_OP_DONT_CARE | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_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
VK_ATTACHMENT_STORE_OP_STORE
: The contents generated during the render pass and within the render area are written to memory.VK_ATTACHMENT_STORE_OP_DONT_CARE
: The contents within the render area are not needed after rendering, and may be discarded; the contents of the attachment will be undefined inside the render area.
Access Type Requirements
- For attachments with a depth format: Both values require
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT
- For attachments with a color format: Both values require
VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
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
VK_ATTACHMENT_LOAD_OP_LOAD
: The previous contents of the image within the render area will be preserved.VK_ATTACHMENT_LOAD_OP_CLEAR
: The contents within the render area will be cleared to a uniform value, which is specified when a render pass instance is begun.VK_ATTACHMENT_LOAD_OP_DONT_CARE
: The previous contents within the area need not be preserved; the contents of the attachment will be undefined inside the render area.
Access Type Requirements
VK_ATTACHMENT_LOAD_OP_LOAD
requiresVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT
VK_ATTACHMENT_LOAD_OP_CLEAR
requiresVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT
VK_ATTACHMENT_LOAD_OP_DONT_CARE
requiresVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT
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
VK_ATTACHMENT_STORE_OP_STORE
: The contents generated during the render pass and within the render area are written to memory.VK_ATTACHMENT_STORE_OP_DONT_CARE
: The contents within the render area are not needed after rendering, and may be discarded; the contents of the attachment will be undefined inside the render area.
Access Type Requirements
- Both values require
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT
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]
fn borrow(&self) -> &AttachmentDescription
[src]
impl BorrowMut<AttachmentDescription> for VkAttachmentDescription
[src]
fn borrow_mut(&mut self) -> &mut AttachmentDescription
[src]
impl Clone for VkAttachmentDescription
[src]
fn clone(&self) -> VkAttachmentDescription
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VkAttachmentDescription
[src]
impl Eq for VkAttachmentDescription
[src]
impl PartialEq<VkAttachmentDescription> for VkAttachmentDescription
[src]
fn eq(&self, other: &VkAttachmentDescription) -> bool
[src]
fn ne(&self, other: &VkAttachmentDescription) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,