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§
Sourceunsafe 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.
unsafe fn begin<'d, ExtFnProvider: 'd + ?Sized>( &'d mut self, info: &CommandBufferBeginInfo<'_>, ext_fn_provider: &'d ExtFnProvider, ) -> Result<CmdRecord<'d, ExtFnProvider>>
Implements
only.Sourceunsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()>
Available on crate feature Implements
only.
unsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()>
Implements
only.Sourceunsafe fn synchronize_with<'p, 'b: 'p>(
&'b mut self,
pool: &'p mut (impl VkHandleMut<Handle = VkCommandPool> + ?Sized),
) -> SynchronizedCommandBuffer<'p, 'b>
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.