[][src]Trait gfx_hal::pool::CommandPool

pub trait CommandPool<B: Backend>: Debug + Any + Send + Sync {
    unsafe fn reset(&mut self, release_resources: bool);
unsafe fn free<I>(&mut self, buffers: I)
    where
        I: IntoIterator<Item = B::CommandBuffer>
; unsafe fn allocate_one(&mut self, level: Level) -> B::CommandBuffer { ... }
unsafe fn allocate_vec(
        &mut self,
        num: usize,
        level: Level
    ) -> SmallVec<[B::CommandBuffer; 1]> { ... } }

The allocated command buffers are associated with the creating command queue.

Required methods

unsafe fn reset(&mut self, release_resources: bool)

unsafe fn free<I>(&mut self, buffers: I) where
    I: IntoIterator<Item = B::CommandBuffer>, 

Free command buffers which are allocated from this pool.

Loading content...

Provided methods

unsafe fn allocate_one(&mut self, level: Level) -> B::CommandBuffer

Allocate a single command buffers from the pool.

unsafe fn allocate_vec(
    &mut self,
    num: usize,
    level: Level
) -> SmallVec<[B::CommandBuffer; 1]>

Allocate new command buffers from the pool.

Loading content...

Implementors

Loading content...