Struct vulkano::command_buffer::CommandBufferPool
[−]
[src]
pub struct CommandBufferPool { // some fields omitted }
A pool from which command buffers are created from.
Methods
impl CommandBufferPool
[src]
fn raw(device: &Arc<Device>, queue_family: &QueueFamily) -> Result<CommandBufferPool, OomError>
See the docs of new().
fn new(device: &Arc<Device>, queue_family: &QueueFamily) -> Arc<CommandBufferPool>
Creates a new pool.
The command buffers created with this pool can only be executed on queues of the given family.
Panic
- Panicks if the queue family doesn't belong to the same physical device as
device
. - Panicks if the device or host ran out of memory.
fn device(&self) -> &Arc<Device>
Returns the device this command pool was created with.
fn queue_family(&self) -> QueueFamily
Returns the queue family on which command buffers of this pool can be executed.
Trait Implementations
impl SynchronizedVulkanObject for CommandBufferPool
[src]
type Object = CommandPool
The type of the object.
fn internal_object_guard(&self) -> MutexGuard<CommandPool>
Returns a reference to the object.