logo
pub struct SingleLayoutDescSetPool { /* private fields */ }
Expand description

SingleLayoutDescSetPool is a convenience wrapper provided by Vulkano not to be confused with VkDescriptorPool. Its function is to provide access to pool(s) to allocate DescriptorSet’s from and optimizes for a specific layout. For a more general purpose pool see descriptor_set::pool::StdDescriptorPool.

Implementations

Initializes a new pool. The pool is configured to allocate sets that corresponds to the parameters passed to this function.

Panics
  • Panics if the provided layout is for push descriptors rather than regular descriptor sets.
  • Panics if the provided layout has a binding with a variable descriptor count.

Returns a new descriptor set, either by creating a new one or returning an existing one from the internal reserve.

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.