pub struct QueueFamilyProperties2<'a> {
pub queue_family_properties: QueueFamilyProperties,
/* private fields */
}Expand description
Fields§
§queue_family_properties: QueueFamilyPropertiesImplementations§
Source§impl<'a> QueueFamilyProperties2<'a>
impl<'a> QueueFamilyProperties2<'a>
pub fn queue_family_properties(self, value: QueueFamilyProperties) -> Self
pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self
Trait Implementations§
Source§impl<'a> Default for QueueFamilyProperties2<'a>
Available on crate features ext_get_physical_device_properties2 or version_1_1 only.
impl<'a> Default for QueueFamilyProperties2<'a>
Available on crate features
ext_get_physical_device_properties2 or version_1_1 only.Source§impl<'a> ExtendableStructure for QueueFamilyProperties2<'a>
Available on crate features ext_get_physical_device_properties2 or version_1_1 only.
impl<'a> ExtendableStructure for QueueFamilyProperties2<'a>
Available on crate features
ext_get_physical_device_properties2 or version_1_1 only.const STRUCTURE_TYPE: StructureType = StructureType::QueueFamilyProperties2
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 QueueFamilyProperties2<'a>
Available on crate features ext_get_physical_device_properties2 or version_1_1 only.
impl<'a> ExtendableStructureBase for QueueFamilyProperties2<'a>
Available on crate features
ext_get_physical_device_properties2 or version_1_1 only.impl<'a, 'b> ExtendingStructure<QueueFamilyProperties2<'b>> for QueueFamilyCheckpointProperties2NV<'a>
Available on crate feature
ext_device_diagnostic_checkpoints and (crate features version_1_3 or ext_synchronization2) and (crate features ext_get_physical_device_properties2 or version_1_1) only.impl<'a, 'b> ExtendingStructure<QueueFamilyProperties2<'b>> for QueueFamilyCheckpointPropertiesNV<'a>
Available on crate feature
ext_device_diagnostic_checkpoints and (crate features ext_get_physical_device_properties2 or version_1_1) only.impl<'a, 'b> ExtendingStructure<QueueFamilyProperties2<'b>> for QueueFamilyGlobalPriorityProperties<'a>
Available on (crate features
ext_global_priority or version_1_4) and (crate features ext_get_physical_device_properties2 or version_1_1) only.impl<'a, 'b> ExtendingStructure<QueueFamilyProperties2<'b>> for QueueFamilyOwnershipTransferPropertiesKHR<'a>
Available on crate feature
ext_maintenance9 and (crate features ext_get_physical_device_properties2 or version_1_1) only.impl<'a> Send for QueueFamilyProperties2<'a>
Available on crate features
ext_get_physical_device_properties2 or version_1_1 only.impl<'a> Sync for QueueFamilyProperties2<'a>
Available on crate features
ext_get_physical_device_properties2 or version_1_1 only.Auto Trait Implementations§
impl<'a> !Freeze for QueueFamilyProperties2<'a>
impl<'a> !RefUnwindSafe for QueueFamilyProperties2<'a>
impl<'a> Unpin for QueueFamilyProperties2<'a>
impl<'a> !UnwindSafe for QueueFamilyProperties2<'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