Trait CommandBufferMut

Source
pub trait CommandBufferMut: CommandBuffer + VkHandleMut {
    // Provided methods
    unsafe fn begin<'d, ExtFnProvider: 'd + ?Sized>(
        &'d mut self,
        info: &CommandBufferBeginInfo<'_>,
        ext_fn_provider: &'d ExtFnProvider,
    ) -> Result<CmdRecord<'d, ExtFnProvider>> { ... }
    unsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()> { ... }
    unsafe fn synchronize_with<'p, 'b: 'p>(
        &'b mut self,
        pool: &'p mut (impl VkHandleMut<Handle = VkCommandPool> + ?Sized),
    ) -> SynchronizedCommandBuffer<'p, 'b> { ... }
}

Provided Methods§

Source

unsafe fn begin<'d, ExtFnProvider: 'd + ?Sized>( &'d mut self, info: &CommandBufferBeginInfo<'_>, ext_fn_provider: &'d ExtFnProvider, ) -> Result<CmdRecord<'d, ExtFnProvider>>

Available on crate feature Implements only.

Start recording a command buffer

§Failures

On failure, this command returns

§Safety

The CommandPool that this commandBuffer was allocated from must be externally synchronized.

Source

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

Available on crate feature Implements only.

Reset a command buffer to the initial state

§Failures

On failure, this command returns

§Safety

The CommandPool that this commandBuffer was allocated from must be externally synchronized.

Source

unsafe fn synchronize_with<'p, 'b: 'p>( &'b mut self, pool: &'p mut (impl VkHandleMut<Handle = VkCommandPool> + ?Sized), ) -> SynchronizedCommandBuffer<'p, 'b>

Locking CommandBuffer with CommandPool to satisfy externally synchronization restriction.

§Safety

This command buffer must be allocated from pool.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

impl<T> CommandBufferMut for ManuallyDrop<T>

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§