pub trait DescriptorPoolMut:
DescriptorPool
+ VkHandleMut
+ DeviceChildHandle {
// Provided methods
unsafe fn alloc_raw(
&mut self,
info: &VkDescriptorSetAllocateInfo,
objects: &mut [VkDescriptorSet],
) -> Result<()> { ... }
fn alloc(
&mut self,
layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>],
) -> Result<Vec<DescriptorSet>> { ... }
fn alloc_array<const N: usize>(
&mut self,
layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>; N],
) -> Result<[DescriptorSet; N]> { ... }
unsafe fn reset(&mut self, flags: VkDescriptorPoolResetFlags) -> Result<()> { ... }
unsafe fn free(&mut self, sets: &[DescriptorSet]) -> Result<()> { ... }
}
Provided Methods§
Sourceunsafe fn alloc_raw(
&mut self,
info: &VkDescriptorSetAllocateInfo,
objects: &mut [VkDescriptorSet],
) -> Result<()>
Available on crate feature Implements
only.
unsafe fn alloc_raw( &mut self, info: &VkDescriptorSetAllocateInfo, objects: &mut [VkDescriptorSet], ) -> Result<()>
Implements
only.Sourcefn alloc(
&mut self,
layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>],
) -> Result<Vec<DescriptorSet>>
Available on crate feature Implements
only.
fn alloc( &mut self, layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>], ) -> Result<Vec<DescriptorSet>>
Implements
only.Allocate one or more descriptor sets
§Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
- VK_ERROR_FRAGMENTED_POOL
Sourcefn alloc_array<const N: usize>(
&mut self,
layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>; N],
) -> Result<[DescriptorSet; N]>
Available on crate feature Implements
only.
fn alloc_array<const N: usize>( &mut self, layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>; N], ) -> Result<[DescriptorSet; N]>
Implements
only.Allocate one or more descriptor sets
§Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
- VK_ERROR_FRAGMENTED_POOL
Sourceunsafe fn reset(&mut self, flags: VkDescriptorPoolResetFlags) -> Result<()>
Available on crate feature Implements
only.
unsafe fn reset(&mut self, flags: VkDescriptorPoolResetFlags) -> Result<()>
Implements
only.Sourceunsafe fn free(&mut self, sets: &[DescriptorSet]) -> Result<()>
Available on crate feature Implements
only.
unsafe fn free(&mut self, sets: &[DescriptorSet]) -> Result<()>
Implements
only.Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.