Struct vulkano::command_buffer::sys::UnsafeCommandBuffer
source · pub struct UnsafeCommandBuffer<A = StandardCommandBufferAllocator>where
A: CommandBufferAllocator,{ /* private fields */ }
Expand description
Command buffer that has been built.
Safety
The command buffer must not outlive the command pool that it was created from, nor the resources used by the recorded commands.
Implementations§
source§impl<A> UnsafeCommandBuffer<A>where
A: CommandBufferAllocator,
impl<A> UnsafeCommandBuffer<A>where A: CommandBufferAllocator,
sourcepub fn queue_family_index(&self) -> u32
pub fn queue_family_index(&self) -> u32
Returns the queue family index that this command buffer was created for.
sourcepub fn level(&self) -> CommandBufferLevel
pub fn level(&self) -> CommandBufferLevel
Returns the level of the command buffer.
sourcepub fn usage(&self) -> CommandBufferUsage
pub fn usage(&self) -> CommandBufferUsage
Returns the usage that the command buffer was created with.
sourcepub fn inheritance_info(&self) -> Option<&CommandBufferInheritanceInfo>
pub fn inheritance_info(&self) -> Option<&CommandBufferInheritanceInfo>
Returns the inheritance info of the command buffer, if it is a secondary command buffer.
Trait Implementations§
source§impl<A> Debug for UnsafeCommandBuffer<A>where
A: CommandBufferAllocator + Debug,
A::Alloc: Debug,
impl<A> Debug for UnsafeCommandBuffer<A>where A: CommandBufferAllocator + Debug, A::Alloc: Debug,
source§impl<A> DeviceOwned for UnsafeCommandBuffer<A>where
A: CommandBufferAllocator,
impl<A> DeviceOwned for UnsafeCommandBuffer<A>where A: CommandBufferAllocator,
source§impl<A> VulkanObject for UnsafeCommandBuffer<A>where
A: CommandBufferAllocator,
impl<A> VulkanObject for UnsafeCommandBuffer<A>where A: CommandBufferAllocator,
Auto Trait Implementations§
impl<A = StandardCommandBufferAllocator> !RefUnwindSafe for UnsafeCommandBuffer<A>
impl<A> Send for UnsafeCommandBuffer<A>
impl<A> Sync for UnsafeCommandBuffer<A>
impl<A> Unpin for UnsafeCommandBuffer<A>where <A as CommandBufferAllocator>::Alloc: Unpin,
impl<A = StandardCommandBufferAllocator> !UnwindSafe for UnsafeCommandBuffer<A>
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
source§impl<T> DeviceOwnedVulkanObject for Twhere
T: DeviceOwned + VulkanObject,
impl<T> DeviceOwnedVulkanObject for Twhere T: DeviceOwned + VulkanObject,
source§fn set_debug_utils_object_name(
&self,
object_name: Option<&str>
) -> Result<(), VulkanError>
fn set_debug_utils_object_name( &self, object_name: Option<&str> ) -> Result<(), VulkanError>
Assigns a human-readable name to the object for debugging purposes. Read more