Struct ash::vk::SubpassDescription2
source · #[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) -> Self
pub fn pipeline_bind_point(self, pipeline_bind_point: PipelineBindPoint) -> Self
pub fn view_mask(self, view_mask: u32) -> Self
pub fn input_attachments( self, input_attachments: &'a [AttachmentReference2<'a>], ) -> Self
pub fn color_attachments( self, color_attachments: &'a [AttachmentReference2<'a>], ) -> Self
pub fn resolve_attachments( self, resolve_attachments: &'a [AttachmentReference2<'a>], ) -> Self
pub fn depth_stencil_attachment( self, depth_stencil_attachment: &'a AttachmentReference2<'a>, ) -> Self
pub fn preserve_attachments(self, preserve_attachments: &'a [u32]) -> Self
sourcepub fn push_next<T: ExtendsSubpassDescription2 + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsSubpassDescription2 + ?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 SubpassDescription2<'a>
impl<'a> Clone for SubpassDescription2<'a>
source§fn clone(&self) -> SubpassDescription2<'a>
fn clone(&self) -> SubpassDescription2<'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 SubpassDescription2<'a>
impl<'a> Debug for SubpassDescription2<'a>
source§impl Default for SubpassDescription2<'_>
impl Default for SubpassDescription2<'_>
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§
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