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 descriptor sets from and optimizes for a specific layout which must not have a variable descriptor count. If you need a variable descriptor count see SingleLayoutVariableDescSetPool. For a more general purpose pool see StandardDescriptorPool.

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.

Trait Implementations

Formats the value using the given formatter. 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.