pub struct CommandBufferObject<Device>(/* private fields */);
Expand description
Opaque handle to a command buffer object
Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> CommandBufferObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> CommandBufferObject<Device>
Sourcepub fn alloc(
device: Device,
info: &CommandBufferAllocateInfo<'_>,
) -> Result<Vec<Self>>
Available on crate features Implements
and alloc
only.
pub fn alloc( device: Device, info: &CommandBufferAllocateInfo<'_>, ) -> Result<Vec<Self>>
Implements
and alloc
only.Allocate command buffers from an existing command pool
§Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
Sourcepub fn alloc_array<const N: usize>(
device: Device,
info: &CommandBufferFixedCountAllocateInfo<'_, N>,
) -> Result<[Self; N]>
Available on crate feature Implements
only.
pub fn alloc_array<const N: usize>( device: Device, info: &CommandBufferFixedCountAllocateInfo<'_, N>, ) -> Result<[Self; N]>
Implements
only.Allocate a static amount of command buffers from an existing command pool
§Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
Source§impl<Device: Clone> CommandBufferObject<&Device>
impl<Device: Clone> CommandBufferObject<&Device>
Sourcepub const fn clone_parent(&self) -> CommandBufferObject<Device>
pub const fn clone_parent(&self) -> CommandBufferObject<Device>
clones internally-referenced parent object
Trait Implementations§
Source§impl<Device> Clone for CommandBufferObject<Device>
impl<Device> Clone for CommandBufferObject<Device>
Source§impl<Device> CommandBufferMut for CommandBufferObject<Device>
impl<Device> CommandBufferMut for CommandBufferObject<Device>
Source§unsafe fn begin<'d, ExtFnProvider: 'd + ?Sized>(
&'d mut self,
info: &CommandBufferBeginInfo<'_>,
ext_fn_provider: &'d ExtFnProvider,
) -> Result<CmdRecord<'d, ExtFnProvider>>
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 Read more
Source§unsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()>
unsafe fn reset(&mut self, flags: VkCommandBufferResetFlags) -> Result<()>
Available on crate feature
Implements
only.Reset a command buffer to the initial state Read more
Source§unsafe 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. Read more
Source§impl<Device> VkHandle for CommandBufferObject<Device>
impl<Device> VkHandle for CommandBufferObject<Device>
type Handle = VkCommandBuffer
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<Device> VkHandleMut for CommandBufferObject<Device>
impl<Device> VkHandleMut for CommandBufferObject<Device>
Source§fn native_ptr_mut(&mut self) -> Self::Handle
fn native_ptr_mut(&mut self) -> Self::Handle
Retrieve an underlying mutable handle
fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>
Source§impl<Device> VkObject for CommandBufferObject<Device>
impl<Device> VkObject for CommandBufferObject<Device>
const TYPE: VkObjectType = 6i32
impl<Device> CommandBuffer for CommandBufferObject<Device>
impl<Device> Copy for CommandBufferObject<Device>
impl<Device: Send> Send for CommandBufferObject<Device>
impl<Device: Sync> Sync for CommandBufferObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for CommandBufferObject<Device>
impl<Device> RefUnwindSafe for CommandBufferObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for CommandBufferObject<Device>where
Device: Unpin,
impl<Device> UnwindSafe for CommandBufferObject<Device>where
Device: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more