Skip to main content

CommandPoolMut

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>]) { ... }
}

Provided Methods§

Source

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

Resets a command pool

§Safety

Application cannot use command buffers after this call

§Failures

On failure, this command returns

  • brvk::VK_ERROR_OUT_OF_HOST_MEMORY
  • brvk::VK_ERROR_OUT_OF_DEVICE_MEMORY
Source

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

Free command buffers

§Safety

Application cannot use passed command buffers after this call

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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 ManuallyDrop<T>
where T: CommandPoolMut,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§