Struct vulkanite::vk::structs::SubpassDescription2
source · #[repr(C)]pub struct SubpassDescription2<'a> {
pub flags: SubpassDescriptionFlags,
pub pipeline_bind_point: PipelineBindPoint,
pub view_mask: u32,
pub p_depth_stencil_attachment: *const AttachmentReference2<'a>,
/* private fields */
}Expand description
Fields§
§flags: SubpassDescriptionFlags§pipeline_bind_point: PipelineBindPoint§view_mask: u32§p_depth_stencil_attachment: *const AttachmentReference2<'a>Implementations§
source§impl<'a> SubpassDescription2<'a>
impl<'a> SubpassDescription2<'a>
pub fn flags(self, value: SubpassDescriptionFlags) -> Self
pub fn pipeline_bind_point(self, value: PipelineBindPoint) -> Self
pub fn view_mask(self, value: u32) -> Self
pub fn depth_stencil_attachment( self, value: Option<&'a AttachmentReference2<'a>>, ) -> Self
pub fn input_attachments( self, p_input_attachments: &'a [AttachmentReference2<'a>], ) -> Self
pub fn color_attachment( self, p_color_attachments: &'a [AttachmentReference2<'a>], p_resolve_attachments: Option<&'a [AttachmentReference2<'a>]>, ) -> Self
pub fn preserve_attachments(self, p_preserve_attachments: &'a [u32]) -> Self
pub fn push_next<T: ExtendingStructure<Self>>(&mut self, ext: &'a mut T)
Trait Implementations§
source§impl<'a> Default for SubpassDescription2<'a>
impl<'a> Default for SubpassDescription2<'a>
source§impl<'a> ExtendableStructure for SubpassDescription2<'a>
impl<'a> ExtendableStructure for SubpassDescription2<'a>
const STRUCTURE_TYPE: StructureType = StructureType::SubpassDescription2
unsafe fn retrieve_next(&self) -> &Cell<*const Header>
source§unsafe fn push_next_unchecked<T: ExtendableStructure>(&self, ext: &T)
unsafe fn push_next_unchecked<T: ExtendableStructure>(&self, ext: &T)
Assuming the current structure chain is the following:
Self -> Ext1 -> Ext2 -> Ext3
calling this function with Ext4 will result in:
Self -> Ext4 -> Ext1 -> Ext2 -> Ext3
This function will never cause cycles in the structure chain
This function is unsafe because it discards the lifetime (ExtendableStructure does not have a lifetime parameter)
Also it does not check that T is a valid extension to be added to Self and only requires references (and not mutable references)
source§fn new_uninit() -> MaybeUninit<Self>
fn new_uninit() -> MaybeUninit<Self>
Return a unitialized structure except the structure type being correctly set
and the p_next pointer being set to null
impl<'a, 'b> ExtendingStructure<SubpassDescription2<'b>> for FragmentShadingRateAttachmentInfoKHR<'a>
impl<'a, 'b> ExtendingStructure<SubpassDescription2<'b>> for MultisampledRenderToSingleSampledInfoEXT<'a>
impl<'a, 'b> ExtendingStructure<SubpassDescription2<'b>> for RenderPassCreationControlEXT<'a>
impl<'a, 'b> ExtendingStructure<SubpassDescription2<'b>> for RenderPassSubpassFeedbackCreateInfoEXT<'a>
impl<'a, 'b> ExtendingStructure<SubpassDescription2<'b>> for SubpassDescriptionDepthStencilResolve<'a>
impl<'a> Send for SubpassDescription2<'a>
impl<'a> Sync for SubpassDescription2<'a>
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
source§impl<H> StructureChainOut<H> for Hwhere
H: ExtendableStructure,
impl<H> StructureChainOut<H> for Hwhere
H: ExtendableStructure,
source§fn setup_uninit(chain: &mut MaybeUninit<H>)
fn setup_uninit(chain: &mut MaybeUninit<H>)
Setup an uninitialized structure chain
After this call, for the structure chain to be initialized, each structure field (with the exception of the structure type
and the p_next pointer) must be initialized (usually by calling the appropriate vulkan command)
The structure type and p_next pointer of each struct are set so that a vulkan commands sees a pointer to the head
as a valid chain containing all structures
Calling setup_uninit should be enough to then call a vulkan command filling this structure chain, moreover after
the call to this vulkan command, the whole structure chain should be considered initialized
source§fn get_uninit_head_ptr(chain: *mut H) -> *mut H
fn get_uninit_head_ptr(chain: *mut H) -> *mut H
Return a mutable pointer to the head structure, which can then be passed to vulkan commands
source§fn setup_cleanup(_: *mut H)
fn setup_cleanup(_: *mut H)
Function to call after a vulkan function initialized this structure to make sure there is no dangling pointer
or anything which could cause undefined behavior