pub struct WgpuSubmissionQueue { /* private fields */ }Expand description
Deterministic bounded queue used before command submission.
Implementations§
Source§impl WgpuSubmissionQueue
impl WgpuSubmissionQueue
Sourcepub fn new(limits: WgpuQueueLimits) -> Self
pub fn new(limits: WgpuQueueLimits) -> Self
Builds an empty bounded queue.
Sourcepub fn push(&mut self, bytes: u64, deadline_tick: u64) -> Result<(), String>
pub fn push(&mut self, bytes: u64, deadline_tick: u64) -> Result<(), String>
Accepts one submission when node, byte, and deadline bounds hold.
Sourcepub fn flush(&mut self) -> WgpuQueueSnapshot
pub fn flush(&mut self) -> WgpuQueueSnapshot
Clears synchronized submissions.
Sourcepub fn snapshot(&self) -> WgpuQueueSnapshot
pub fn snapshot(&self) -> WgpuQueueSnapshot
Returns current queued pressure.
Trait Implementations§
Source§impl Clone for WgpuSubmissionQueue
impl Clone for WgpuSubmissionQueue
Source§fn clone(&self) -> WgpuSubmissionQueue
fn clone(&self) -> WgpuSubmissionQueue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WgpuSubmissionQueue
impl RefUnwindSafe for WgpuSubmissionQueue
impl Send for WgpuSubmissionQueue
impl Sync for WgpuSubmissionQueue
impl Unpin for WgpuSubmissionQueue
impl UnsafeUnpin for WgpuSubmissionQueue
impl UnwindSafe for WgpuSubmissionQueue
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