pub struct RenderPassCreateInfo<'a> {
pub flags: RenderPassCreateFlags,
/* private fields */
}Expand description
Fields§
§flags: RenderPassCreateFlagsImplementations§
Source§impl<'a> RenderPassCreateInfo<'a>
impl<'a> RenderPassCreateInfo<'a>
pub fn flags(self, value: RenderPassCreateFlags) -> Self
pub fn attachments( self, p_attachments: impl AsSlice<'a, AttachmentDescription>, ) -> Self
pub fn get_attachments(&self) -> &'a [AttachmentDescription]
pub fn subpasses( self, p_subpasses: impl AsSlice<'a, SubpassDescription<'a>>, ) -> Self
pub fn get_subpasses(&self) -> &'a [SubpassDescription<'a>]
pub fn dependencies( self, p_dependencies: impl AsSlice<'a, SubpassDependency>, ) -> Self
pub fn get_dependencies(&self) -> &'a [SubpassDependency]
pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self
Trait Implementations§
Source§impl<'a> Default for RenderPassCreateInfo<'a>
impl<'a> Default for RenderPassCreateInfo<'a>
Source§impl<'a> ExtendableStructure for RenderPassCreateInfo<'a>
impl<'a> ExtendableStructure for RenderPassCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::RenderPassCreateInfo
Source§unsafe fn retrieve_next(&self) -> &Cell<*const Header>
unsafe fn retrieve_next(&self) -> &Cell<*const Header>
SAFETY: Same as ExtendableStructureBase::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
Source§impl<'a> ExtendableStructureBase for RenderPassCreateInfo<'a>
impl<'a> ExtendableStructureBase for RenderPassCreateInfo<'a>
impl<'a, 'b> ExtendingStructure<RenderPassCreateInfo<'b>> for RenderPassFragmentDensityMapCreateInfoEXT<'a>
Available on crate feature
ext_fragment_density_map only.impl<'a, 'b> ExtendingStructure<RenderPassCreateInfo<'b>> for RenderPassInputAttachmentAspectCreateInfo<'a>
Available on crate features
ext_maintenance2 or version_1_1 only.impl<'a, 'b> ExtendingStructure<RenderPassCreateInfo<'b>> for RenderPassMultiviewCreateInfo<'a>
Available on crate features
ext_multiview or version_1_1 only.impl<'a, 'b> ExtendingStructure<RenderPassCreateInfo<'b>> for RenderPassTileShadingCreateInfoQCOM<'a>
Available on crate feature
ext_tile_shading only.impl<'a, 'b> ExtendingStructure<RenderPassCreateInfo<'b>> for TileMemorySizeInfoQCOM<'a>
Available on crate features
ext_tile_memory_heap and ext_tile_properties only.impl<'a> Send for RenderPassCreateInfo<'a>
impl<'a> Sync for RenderPassCreateInfo<'a>
Auto Trait Implementations§
impl<'a> !Freeze for RenderPassCreateInfo<'a>
impl<'a> !RefUnwindSafe for RenderPassCreateInfo<'a>
impl<'a> Unpin for RenderPassCreateInfo<'a>
impl<'a> !UnwindSafe for RenderPassCreateInfo<'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