pub struct QueueManager { /* private fields */ }Expand description
Queue manager for multi-queue support
Implementations§
Source§impl QueueManager
impl QueueManager
Sourcepub fn new(device: &GpuDevice) -> Self
pub fn new(device: &GpuDevice) -> Self
Create a new queue manager
Note: In wgpu, we typically have a single queue that handles all operations. This abstraction provides a logical separation for different workload types.
Sourcepub fn compute(&self) -> &CommandQueue
pub fn compute(&self) -> &CommandQueue
Get the compute queue
Sourcepub fn transfer(&self) -> &CommandQueue
pub fn transfer(&self) -> &CommandQueue
Get the transfer queue
Sourcepub fn graphics(&self) -> &CommandQueue
pub fn graphics(&self) -> &CommandQueue
Get the graphics queue
Sourcepub fn get_queue(&self, queue_type: QueueType) -> &CommandQueue
pub fn get_queue(&self, queue_type: QueueType) -> &CommandQueue
Get a queue by type
Auto Trait Implementations§
impl Freeze for QueueManager
impl !RefUnwindSafe for QueueManager
impl Send for QueueManager
impl Sync for QueueManager
impl Unpin for QueueManager
impl UnsafeUnpin for QueueManager
impl !UnwindSafe for QueueManager
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more