pub unsafe trait CommandBufferBuilderAlloc: DeviceOwned {
    type Alloc: CommandBufferAlloc;

    // Required methods
    fn inner(&self) -> &CommandPoolAlloc;
    fn into_alloc(self) -> Self::Alloc;
    fn queue_family_index(&self) -> u32;
}
Expand description

A command buffer allocated from a pool and that can be recorded.

Safety

See CommandBufferAllocator for information about safety.

Required Associated Types§

source

type Alloc: CommandBufferAlloc

Return type of into_alloc.

Required Methods§

source

fn inner(&self) -> &CommandPoolAlloc

Returns the internal object that contains the command buffer.

source

fn into_alloc(self) -> Self::Alloc

Turns this builder into a command buffer that is pending execution.

source

fn queue_family_index(&self) -> u32

Returns the index of the queue family that the pool targets.

Implementors§