[][src]Trait amethyst_rendy::rendy::hal::pool::RawCommandPool

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

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

Required methods

unsafe fn reset(&mut self)

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

Free command buffers which are allocated from this pool.

Loading content...

Provided methods

fn allocate_one(&mut self, level: Level) -> <B as Backend>::CommandBuffer

Allocate a single command buffers from the pool.

fn allocate_vec(
    &mut self,
    num: usize,
    level: Level
) -> Vec<<B as Backend>::CommandBuffer>

Allocate new command buffers from the pool.

Loading content...

Implementors

Loading content...