[−][src]Struct bedrock::CommandPool
Opaque handle to a command pool object
Methods
impl CommandPool
[src]
Following methods are enabled with [feature = "Implements"]
pub fn new(
device: &Device,
queue_family: u32,
transient: bool,
indiv_resettable: bool
) -> Result<Self>
[src]
device: &Device,
queue_family: u32,
transient: bool,
indiv_resettable: bool
) -> Result<Self>
Create a new command pool object
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn alloc(&self, count: u32, primary: bool) -> Result<Vec<CommandBuffer>>
[src]
Allocate command buffers from an existing command pool
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn reset(&self, release_resources: bool) -> Result<()>
[src]
Resets a command pool
Safety
Application cannot use command buffers after this call
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn free(&self, buffers: &[CommandBuffer])
[src]
Free command buffers
Trait Implementations
impl Clone for CommandPool
[src]
fn clone(&self) -> CommandPool
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl DeviceChild for CommandPool
[src]
impl Drop for CommandPool
[src]
impl VkHandle for CommandPool
[src]
type Handle = VkCommandPool
fn native_ptr(&self) -> VkCommandPool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for CommandPool
impl !Send for CommandPool
impl !Sync for CommandPool
impl Unpin for CommandPool
impl !UnwindSafe for CommandPool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,