pub struct Queue { /* private fields */ }
Expand description
Represents a queue where commands can be submitted.
Implementations§
Source§impl Queue
impl Queue
Sourcepub fn flags(&self) -> QueueCreateFlags
pub fn flags(&self) -> QueueCreateFlags
Returns the flags that the queue was created with.
Sourcepub fn queue_family_index(&self) -> u32
pub fn queue_family_index(&self) -> u32
Returns the index of the queue family that this queue belongs to.
Sourcepub fn queue_index(&self) -> u32
pub fn queue_index(&self) -> u32
Returns the index of this queue within its queue family.
Sourcepub fn with<'a, R>(
self: &'a Arc<Self>,
func: impl FnOnce(QueueGuard<'a>) -> R,
) -> R
pub fn with<'a, R>( self: &'a Arc<Self>, func: impl FnOnce(QueueGuard<'a>) -> R, ) -> R
Locks the queue and then calls the provided closure, providing it with an object that can be used to perform operations on the queue, such as command buffer submissions.
Trait Implementations§
Source§impl DeviceOwned for Queue
impl DeviceOwned for Queue
Source§impl VulkanObject for Queue
impl VulkanObject for Queue
impl Eq for Queue
Auto Trait Implementations§
impl !Freeze for Queue
impl !RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl !UnwindSafe for Queue
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