pub struct DescriptorAllocator<P, S> { /* private fields */ }
Expand description

Descriptor allocator. Can be used to allocate descriptor sets for any layout.

Implementations

Create new allocator instance.

Allocate descriptor set with specified layout.

Safety
  • Same device instance must be passed to all method calls of one DescriptorAllocator instance.
  • flags must match flags that were used to create the layout.
  • layout_descriptor_count must match descriptor numbers in the layout.

Free descriptor sets.

Safety
  • Same device instance must be passed to all method calls of one DescriptorAllocator instance.
  • None of descriptor sets can be referenced in any pending command buffers.
  • All command buffers where at least one of descriptor sets referenced move to invalid state.

Perform cleanup to allow resources reuse.

Safety
  • Same device instance must be passed to all method calls of one DescriptorAllocator instance.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.