pub trait CommandBufferMut: CommandBuffer + VkHandleMut {
// Provided methods
unsafe fn begin<'d>(
&'d mut self,
info: &CommandBufferBeginInfo<'_>,
) -> Result<CmdRecord<'d>> { ... }
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>(
&'d mut self,
info: &CommandBufferBeginInfo<'_>,
) -> Result<CmdRecord<'d>>
unsafe fn begin<'d>( &'d mut self, info: &CommandBufferBeginInfo<'_>, ) -> Result<CmdRecord<'d>>
Sourceunsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()>
unsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()>
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.