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,

source

pub fn queue_family_index(&self) -> u32

Returns the queue family index that this command buffer was created for.

source

pub fn level(&self) -> CommandBufferLevel

Returns the level of the command buffer.

source

pub fn usage(&self) -> CommandBufferUsage

Returns the usage that the command buffer was created with.

source

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,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A> DeviceOwned for UnsafeCommandBuffer<A>where A: CommandBufferAllocator,

source§

fn device(&self) -> &Arc<Device>

Returns the device that owns self.
source§

impl<A> VulkanObject for UnsafeCommandBuffer<A>where A: CommandBufferAllocator,

§

type Handle = CommandBuffer

The type of the object.
source§

fn handle(&self) -> Self::Handle

Returns the raw Vulkan handle of the object.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DeviceOwnedVulkanObject for Twhere T: DeviceOwned + VulkanObject,

source§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.