#[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, ) -> AttachmentDescription2<'a>
pub fn format(self, format: Format) -> AttachmentDescription2<'a>
pub fn samples(self, samples: SampleCountFlags) -> AttachmentDescription2<'a>
pub fn load_op(self, load_op: AttachmentLoadOp) -> AttachmentDescription2<'a>
pub fn store_op(self, store_op: AttachmentStoreOp) -> AttachmentDescription2<'a>
pub fn stencil_load_op( self, stencil_load_op: AttachmentLoadOp, ) -> AttachmentDescription2<'a>
pub fn stencil_store_op( self, stencil_store_op: AttachmentStoreOp, ) -> AttachmentDescription2<'a>
pub fn initial_layout( self, initial_layout: ImageLayout, ) -> AttachmentDescription2<'a>
pub fn final_layout( self, final_layout: ImageLayout, ) -> AttachmentDescription2<'a>
Sourcepub fn push_next<T>(self, next: &'a mut T) -> AttachmentDescription2<'a>where
T: ExtendsAttachmentDescription2 + ?Sized,
pub fn push_next<T>(self, next: &'a mut T) -> AttachmentDescription2<'a>where
T: ExtendsAttachmentDescription2 + ?Sized,
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 duplicate of the value. Read more
1.0.0§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§fn default() -> AttachmentDescription2<'_>
fn default() -> AttachmentDescription2<'_>
Returns the “default value” for a type. Read more
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)