#[repr(C)]pub struct WriteDescriptorSet<'a> {
pub dst_set: Option<BorrowedHandle<'a, DescriptorSet>>,
pub dst_binding: u32,
pub dst_array_element: u32,
pub descriptor_count: u32,
pub descriptor_type: DescriptorType,
/* private fields */
}
Expand description
Fields§
§dst_set: Option<BorrowedHandle<'a, DescriptorSet>>
§dst_binding: u32
§dst_array_element: u32
§descriptor_count: u32
§descriptor_type: DescriptorType
Implementations§
Source§impl<'a> WriteDescriptorSet<'a>
impl<'a> WriteDescriptorSet<'a>
pub fn dst_set(self, value: Option<&'a DescriptorSet>) -> Self
pub fn dst_binding(self, value: u32) -> Self
pub fn dst_array_element(self, value: u32) -> Self
pub fn descriptor_count(self, value: u32) -> Self
pub fn descriptor_type(self, value: DescriptorType) -> Self
pub fn descriptor<V2: Alias<BufferView> + 'a>( self, p_image_info: Option<impl AsSlice<'a, DescriptorImageInfo<'a>>>, p_buffer_info: Option<impl AsSlice<'a, DescriptorBufferInfo<'a>>>, p_texel_buffer_view: Option<impl AsSlice<'a, V2>>, ) -> Self
pub fn get_image_info(&self) -> &'a [DescriptorImageInfo<'a>]
pub fn get_buffer_info(&self) -> &'a [DescriptorBufferInfo<'a>]
pub fn get_texel_buffer_view(&self) -> &'a [BorrowedHandle<'a, BufferView>]
pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self
Trait Implementations§
Source§impl<'a> Default for WriteDescriptorSet<'a>
impl<'a> Default for WriteDescriptorSet<'a>
Source§impl<'a> ExtendableStructure for WriteDescriptorSet<'a>
impl<'a> ExtendableStructure for WriteDescriptorSet<'a>
const STRUCTURE_TYPE: StructureType = StructureType::WriteDescriptorSet
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 WriteDescriptorSet<'a>
impl<'a> ExtendableStructureBase for WriteDescriptorSet<'a>
impl<'a, 'b> ExtendingStructure<WriteDescriptorSet<'b>> for WriteDescriptorSetAccelerationStructureKHR<'a>
impl<'a, 'b> ExtendingStructure<WriteDescriptorSet<'b>> for WriteDescriptorSetAccelerationStructureNV<'a>
impl<'a, 'b> ExtendingStructure<WriteDescriptorSet<'b>> for WriteDescriptorSetInlineUniformBlock<'a>
impl<'a, 'b> ExtendingStructure<WriteDescriptorSet<'b>> for WriteDescriptorSetPartitionedAccelerationStructureNV<'a>
impl<'a> Send for WriteDescriptorSet<'a>
impl<'a> Sync for WriteDescriptorSet<'a>
Auto Trait Implementations§
impl<'a> !Freeze for WriteDescriptorSet<'a>
impl<'a> !RefUnwindSafe for WriteDescriptorSet<'a>
impl<'a> Unpin for WriteDescriptorSet<'a>
impl<'a> !UnwindSafe for WriteDescriptorSet<'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