pub struct GpuTimingBatch { /* private fields */ }Expand description
Fixed-capacity result of one nonblocking GPU-diagnostics collection.
At most eight completed samples are returned, ordered by their correlation keys. Later submissions may complete first; match IDs rather than treating collection order as frame order. This value allocates no sample array.
Implementations§
Source§impl GpuTimingBatch
impl GpuTimingBatch
Sourcepub fn samples(&self) -> &[GpuTimingSample]
pub fn samples(&self) -> &[GpuTimingSample]
Returns completed valid samples from this collection only.
Sourcepub const fn collection_cpu(self) -> Duration
pub const fn collection_cpu(self) -> Duration
Returns CPU time spent polling once, copying up to 128 timestamp bytes, validating intervals and unmapping. The poll does not wait for the GPU, but may perform backend maintenance or invoke other ready callbacks.
Trait Implementations§
Source§impl Clone for GpuTimingBatch
impl Clone for GpuTimingBatch
Source§fn clone(&self) -> GpuTimingBatch
fn clone(&self) -> GpuTimingBatch
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 moreimpl Copy for GpuTimingBatch
Auto Trait Implementations§
impl Freeze for GpuTimingBatch
impl RefUnwindSafe for GpuTimingBatch
impl Send for GpuTimingBatch
impl Sync for GpuTimingBatch
impl Unpin for GpuTimingBatch
impl UnsafeUnpin for GpuTimingBatch
impl UnwindSafe for GpuTimingBatch
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