#[repr(C)]pub struct SubpassDescription2<'a> {Show 14 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: SubpassDescriptionFlags,
pub pipeline_bind_point: PipelineBindPoint,
pub view_mask: u32,
pub input_attachment_count: u32,
pub p_input_attachments: *const AttachmentReference2<'a>,
pub color_attachment_count: u32,
pub p_color_attachments: *const AttachmentReference2<'a>,
pub p_resolve_attachments: *const AttachmentReference2<'a>,
pub p_depth_stencil_attachment: *const AttachmentReference2<'a>,
pub preserve_attachment_count: u32,
pub p_preserve_attachments: *const u32,
pub _marker: PhantomData<&'a ()>,
}Expand description
Fields§
§s_type: StructureType§p_next: *const c_void§flags: SubpassDescriptionFlags§pipeline_bind_point: PipelineBindPoint§view_mask: u32§input_attachment_count: u32§p_input_attachments: *const AttachmentReference2<'a>§color_attachment_count: u32§p_color_attachments: *const AttachmentReference2<'a>§p_resolve_attachments: *const AttachmentReference2<'a>§p_depth_stencil_attachment: *const AttachmentReference2<'a>§preserve_attachment_count: u32§p_preserve_attachments: *const u32§_marker: PhantomData<&'a ()>Implementations§
Source§impl<'a> SubpassDescription2<'a>
impl<'a> SubpassDescription2<'a>
pub fn flags(self, flags: SubpassDescriptionFlags) -> SubpassDescription2<'a>
pub fn pipeline_bind_point( self, pipeline_bind_point: PipelineBindPoint, ) -> SubpassDescription2<'a>
pub fn view_mask(self, view_mask: u32) -> SubpassDescription2<'a>
pub fn input_attachments( self, input_attachments: &'a [AttachmentReference2<'a>], ) -> SubpassDescription2<'a>
pub fn color_attachments( self, color_attachments: &'a [AttachmentReference2<'a>], ) -> SubpassDescription2<'a>
pub fn resolve_attachments( self, resolve_attachments: &'a [AttachmentReference2<'a>], ) -> SubpassDescription2<'a>
pub fn depth_stencil_attachment( self, depth_stencil_attachment: &'a AttachmentReference2<'a>, ) -> SubpassDescription2<'a>
pub fn preserve_attachments( self, preserve_attachments: &'a [u32], ) -> SubpassDescription2<'a>
Sourcepub fn push_next<T>(self, next: &'a mut T) -> SubpassDescription2<'a>where
T: ExtendsSubpassDescription2 + ?Sized,
pub fn push_next<T>(self, next: &'a mut T) -> SubpassDescription2<'a>where
T: ExtendsSubpassDescription2 + ?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 SubpassDescription2<'a>
impl<'a> Clone for SubpassDescription2<'a>
Source§fn clone(&self) -> SubpassDescription2<'a>
fn clone(&self) -> SubpassDescription2<'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 SubpassDescription2<'a>
impl<'a> Debug for SubpassDescription2<'a>
Source§impl Default for SubpassDescription2<'_>
impl Default for SubpassDescription2<'_>
Source§fn default() -> SubpassDescription2<'_>
fn default() -> SubpassDescription2<'_>
Returns the “default value” for a type. Read more
Source§impl<'a> TaggedStructure for SubpassDescription2<'a>
impl<'a> TaggedStructure for SubpassDescription2<'a>
const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_DESCRIPTION_2
impl<'a> Copy for SubpassDescription2<'a>
impl Send for SubpassDescription2<'_>
impl Sync for SubpassDescription2<'_>
Auto Trait Implementations§
impl<'a> Freeze for SubpassDescription2<'a>
impl<'a> RefUnwindSafe for SubpassDescription2<'a>
impl<'a> Unpin for SubpassDescription2<'a>
impl<'a> UnwindSafe for SubpassDescription2<'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)