Struct QueueObject

Source
pub struct QueueObject<Device>(/* private fields */);
Expand description

Opaque handle to a queue object

Implementations§

Source§

impl<Device: Clone> QueueObject<&Device>

Source

pub fn clone_parent(self) -> QueueObject<Device>

Source§

impl<Device> QueueObject<Device>

Source

pub const unsafe fn manage(handle: VkQueue, parent: Device) -> Self

Constructs from raw values

§Safety

the resource must be created from the device and not freed anywhere

Source

pub const fn unmanage(self) -> (VkQueue, Device)

Purges the construct (Drop will not be called for this resource)

Trait Implementations§

Source§

impl<Device: Clone> Clone for QueueObject<Device>

Source§

fn clone(&self) -> QueueObject<Device>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Device: Device> DeviceChild for QueueObject<Device>

Source§

type ConcreteDevice = Device

A concrete type of the parent device object.
Source§

fn device(&self) -> &Self::ConcreteDevice

Retrieve a reference to a device object that creates this object
Source§

impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for QueueObject<Device>

Source§

fn device_handle(&self) -> VkDevice

Retrieve a reference to a device handle that creates this objecs
Source§

impl<Device: Device> QueueMut for QueueObject<Device>

Source§

fn wait(&mut self) -> Result<()>

Available on crate feature Implements only.
Wait for a object to become idle
Source§

fn bind_sparse( &mut self, batches: &[impl SparseBindingOpBatch], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>

Available on crate features Implements and alloc only.
Bind device memory to a sparse resource object Read more
Source§

unsafe fn bind_sparse_raw( &mut self, batches: &[VkBindSparseInfo], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>

Available on crate feature Implements only.
Bind device memory to a sparse resource object Read more
Source§

fn submit( &mut self, batches: &[impl SubmissionBatch], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>

Available on crate features Implements and alloc only.
Submits a sequence of semaphores or command buffers to a queue Read more
Source§

unsafe fn submit_raw( &mut self, batches: &[SubmitInfo<'_, '_, '_>], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>

Available on crate feature Implements only.
Submits a sequence of semaphores or command buffers to a queue Read more
Source§

fn submit2( &mut self, batches: &[SubmitInfo2<'_, '_>], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>

Available on crate features Implements and VK_KHR_synchronization2 only.
Submits command buffers to a queue Read more
Source§

fn present<'r>(&mut self, info: &PresentInfo<'r>) -> Result<()>

Available on crate features Implements and VK_KHR_swapchain only.
Queue images for presentation Read more
Source§

impl<Device> VkHandle for QueueObject<Device>

Source§

type Handle = VkQueue

Source§

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

Retrieve an underlying handle
Source§

fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>

Source§

impl<Device> VkHandleMut for QueueObject<Device>

Source§

fn native_ptr_mut(&mut self) -> Self::Handle

Retrieve an underlying mutable handle
Source§

fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>

Source§

impl<Device> VkObject for QueueObject<Device>

Source§

const TYPE: VkObjectType = 4i32

Source§

fn set_name(&self, name: Option<&CStr>) -> Result<()>
where Self: DeviceChild<ConcreteDevice: InstanceChild<ConcreteInstance: InstanceExtensions>>, Self::Handle: VkRawHandle,

Available on crate features Implements and VK_EXT_debug_utils only.
Give a user-friendly name to this object. Read more
Source§

impl<Device: Device> Queue for QueueObject<Device>

Source§

impl<Device: Send> Send for QueueObject<Device>

Source§

impl<Device: Sync> Sync for QueueObject<Device>

Auto Trait Implementations§

§

impl<Device> Freeze for QueueObject<Device>
where Device: Freeze,

§

impl<Device> RefUnwindSafe for QueueObject<Device>
where Device: RefUnwindSafe,

§

impl<Device> Unpin for QueueObject<Device>
where Device: Unpin,

§

impl<Device> UnwindSafe for QueueObject<Device>
where Device: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> VkHandleExt for T
where T: VkHandle,

Source§

fn eq_handle(&self, other: &Self) -> bool
where Self::Handle: VkRawHandle,

Checks the equality between vulkan objects by their handle value.