Struct ash::vk::AttachmentDescription2
source · #[repr(C)]pub struct AttachmentDescription2<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: AttachmentDescriptionFlags,
pub format: Format,
pub samples: SampleCountFlags,
pub load_op: AttachmentLoadOp,
pub store_op: AttachmentStoreOp,
pub stencil_load_op: AttachmentLoadOp,
pub stencil_store_op: AttachmentStoreOp,
pub initial_layout: ImageLayout,
pub final_layout: ImageLayout,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: AttachmentDescriptionFlags
§format: Format
§samples: SampleCountFlags
§load_op: AttachmentLoadOp
§store_op: AttachmentStoreOp
§stencil_load_op: AttachmentLoadOp
§stencil_store_op: AttachmentStoreOp
§initial_layout: ImageLayout
§final_layout: ImageLayout
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> AttachmentDescription2<'a>
impl<'a> AttachmentDescription2<'a>
pub fn flags(self, flags: AttachmentDescriptionFlags) -> Self
pub fn format(self, format: Format) -> Self
pub fn samples(self, samples: SampleCountFlags) -> Self
pub fn load_op(self, load_op: AttachmentLoadOp) -> Self
pub fn store_op(self, store_op: AttachmentStoreOp) -> Self
pub fn stencil_load_op(self, stencil_load_op: AttachmentLoadOp) -> Self
pub fn stencil_store_op(self, stencil_store_op: AttachmentStoreOp) -> Self
pub fn initial_layout(self, initial_layout: ImageLayout) -> Self
pub fn final_layout(self, final_layout: ImageLayout) -> Self
sourcepub fn push_next<T: ExtendsAttachmentDescription2 + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsAttachmentDescription2 + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for AttachmentDescription2<'a>
impl<'a> Clone for AttachmentDescription2<'a>
source§fn clone(&self) -> AttachmentDescription2<'a>
fn clone(&self) -> AttachmentDescription2<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for AttachmentDescription2<'a>
impl<'a> Debug for AttachmentDescription2<'a>
source§impl Default for AttachmentDescription2<'_>
impl Default for AttachmentDescription2<'_>
source§impl<'a> TaggedStructure for AttachmentDescription2<'a>
impl<'a> TaggedStructure for AttachmentDescription2<'a>
const STRUCTURE_TYPE: StructureType = StructureType::ATTACHMENT_DESCRIPTION_2
impl<'a> Copy for AttachmentDescription2<'a>
impl Send for AttachmentDescription2<'_>
impl Sync for AttachmentDescription2<'_>
Auto Trait Implementations§
impl<'a> Freeze for AttachmentDescription2<'a>
impl<'a> RefUnwindSafe for AttachmentDescription2<'a>
impl<'a> Unpin for AttachmentDescription2<'a>
impl<'a> UnwindSafe for AttachmentDescription2<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more