pub struct DynQueue { /* private fields */ }Expand description
Type-erased queue for use in the unified executor.
This wraps a concrete HardwareQueue implementation and provides
a common interface that doesn’t require knowing the signal type.
Implementations§
Source§impl DynQueue
impl DynQueue
Sourcepub fn new<Q: HardwareQueue + 'static>(queue: Q) -> Selfwhere
Q::Signal: 'static,
pub fn new<Q: HardwareQueue + 'static>(queue: Q) -> Selfwhere
Q::Signal: 'static,
Create a new type-erased queue from a concrete implementation.
Sourcepub fn wait(&mut self, signal: &dyn TimelineSignal, value: u64) -> &mut Self
pub fn wait(&mut self, signal: &dyn TimelineSignal, value: u64) -> &mut Self
Wait for a type-erased signal.
Sourcepub fn signal(&mut self, signal: &dyn TimelineSignal, value: u64) -> &mut Self
pub fn signal(&mut self, signal: &dyn TimelineSignal, value: u64) -> &mut Self
Signal completion.
Sourcepub fn exec(
&mut self,
program: &dyn Program,
buffers: &[&Buffer],
params: &ExecParams,
) -> &mut Self
pub fn exec( &mut self, program: &dyn Program, buffers: &[&Buffer], params: &ExecParams, ) -> &mut Self
Execute a program.
Sourcepub fn memory_barrier(&mut self) -> &mut Self
pub fn memory_barrier(&mut self) -> &mut Self
Insert memory barrier.
Sourcepub fn device(&self) -> &DeviceSpec
pub fn device(&self) -> &DeviceSpec
Get the device.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynQueue
impl !RefUnwindSafe for DynQueue
impl Send for DynQueue
impl !Sync for DynQueue
impl Unpin for DynQueue
impl UnsafeUnpin for DynQueue
impl !UnwindSafe for DynQueue
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