pub struct ComputeQueue { /* private fields */ }Expand description
(G5d) a queue of its own for compute shaders and copies, beside the device’s queue (Device::compute_queue): its encoders record no render passes, its submissions run in parallel with the device queue’s unless one waits for the other (submit_after)
Implementations§
Source§impl ComputeQueue
impl ComputeQueue
Sourcepub fn encoder(&self) -> Result<CommandEncoder<'_>>
pub fn encoder(&self) -> Result<CommandEncoder<'_>>
(G5d) an encoder of this queue’s family: copies, fills, barriers, compute and timestamps (where the family has them); a render pass is Invalid (from finish)
Sourcepub fn submit<'a, I: IntoIterator<Item = CommandBuffer<'a>>>(
&self,
cmds: I,
) -> Result<SubmitId>
pub fn submit<'a, I: IntoIterator<Item = CommandBuffer<'a>>>( &self, cmds: I, ) -> Result<SubmitId>
(G5d) run this queue’s command buffers in order -> their SubmitId (Device::wait takes it); the pending uploads go first, on the device’s queue
Sourcepub fn submit_after<'a, I: IntoIterator<Item = CommandBuffer<'a>>>(
&self,
wait: &[SubmitId],
cmds: I,
) -> Result<SubmitId>
pub fn submit_after<'a, I: IntoIterator<Item = CommandBuffer<'a>>>( &self, wait: &[SubmitId], cmds: I, ) -> Result<SubmitId>
(G5d) the same once the submissions wait (of either queue) are done: a wait through the timeline, at all
commands
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ComputeQueue
impl !UnwindSafe for ComputeQueue
impl Forget for ComputeQueue
impl Freeze for ComputeQueue
impl Move for ComputeQueue
impl Send for ComputeQueue
impl Sync for ComputeQueue
impl Unpin for ComputeQueue
impl UnsafeUnpin for ComputeQueue
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