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§
sourcetype Alloc: CommandBufferAlloc
type Alloc: CommandBufferAlloc
Return type of into_alloc
.
Required Methods§
sourcefn inner(&self) -> &CommandPoolAlloc
fn inner(&self) -> &CommandPoolAlloc
Returns the internal object that contains the command buffer.
sourcefn into_alloc(self) -> Self::Alloc
fn into_alloc(self) -> Self::Alloc
Turns this builder into a command buffer that is pending execution.
sourcefn queue_family_index(&self) -> u32
fn queue_family_index(&self) -> u32
Returns the index of the queue family that the pool targets.