Skip to main content

allocate_descriptor_sets

Function allocate_descriptor_sets 

Source
pub unsafe fn allocate_descriptor_sets(
    device: VkHandleRef<'_, VkDevice>,
    info: &VkDescriptorSetAllocateInfo,
    sink: &mut [MaybeUninit<DescriptorSet>],
) -> Result<()>
Expand description

ยงSafety

  • info must be a valid VkDescriptorSetAllocateInfo structure.
  • sink must be a slice of MaybeUninit<VkDescriptorSet> with enough capacity to hold info.descriptorSetCount elements.
  • VkDescriptorPool in info must be valid and created from device.