Trait CommandPoolMut

Source
pub trait CommandPoolMut: CommandPool + VkHandleMut {
    // Provided methods
    unsafe fn reset(&mut self, flags: CommandPoolResetFlags) -> Result<()> { ... }
    unsafe fn free(&mut self, buffers: &[VkHandleRefMut<'_, VkCommandBuffer>]) { ... }
    fn trim(&mut self) { ... }
}

Provided Methods§

Source

unsafe fn reset(&mut self, flags: CommandPoolResetFlags) -> Result<()>

Available on crate feature Implements only.

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
Source

unsafe fn free(&mut self, buffers: &[VkHandleRefMut<'_, VkCommandBuffer>])

Available on crate feature Implements only.

Free command buffers

§Safety

Application cannot use passed command buffers after this call

Source

fn trim(&mut self)

Available on crate features Implements and VK_KHR_maintenance1 only.

Trim a command pool

Implementations on Foreign Types§

Source§

impl<'s, T> CommandPoolMut for &'s mut T
where T: CommandPoolMut + ?Sized,

Source§

impl<T> CommandPoolMut for Box<T>
where T: CommandPoolMut + ?Sized,

Source§

impl<T> CommandPoolMut for RefMut<'_, T>
where T: CommandPoolMut + ?Sized,

Source§

impl<T> CommandPoolMut for ManuallyDrop<T>
where T: CommandPoolMut,

Source§

impl<T> CommandPoolMut for MutexGuard<'_, T>
where T: CommandPoolMut + ?Sized,

Source§

impl<T> CommandPoolMut for RwLockWriteGuard<'_, T>
where T: CommandPoolMut + ?Sized,

Source§

impl<T> CommandPoolMut for MutexGuard<'_, T>
where T: CommandPoolMut + ?Sized,

Source§

impl<T> CommandPoolMut for RwLockWriteGuard<'_, T>
where T: CommandPoolMut + ?Sized,

Implementors§