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

Standard implementation of a command pool.

A thread can have as many Arc<StandardCommandPool>s as needed, but none of them can escape the thread they were created on. This is done so that there are no locks involved when creating command buffers. Command buffers can’t be moved between threads during the building process, but finished command buffers can. When a command buffer is dropped, it is returned back to the pool for reuse.

Implementations

Builds a new pool.

Panics
  • Panics if the device and the queue family don’t belong to the same physical device.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the device that owns Self.

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.