pub struct GpuDiagnosticSnapshot {
pub entries: Vec<GpuDiagnostic>,
pub dropped: u64,
pub device_lost: bool,
pub out_of_memory: bool,
}Expand description
What a GpuDiagnosticLog held when it was read.
Fields§
§entries: Vec<GpuDiagnostic>The kept events, oldest first.
dropped: u64Events that arrived and were pushed out by later ones.
device_lost: boolWhether any event, kept or dropped, was a device loss.
out_of_memory: boolWhether any event since the last clear, kept or dropped, was out of memory.
Later uses of the failed resource report validation errors that push the cause out.
Implementations§
Source§impl GpuDiagnosticSnapshot
impl GpuDiagnosticSnapshot
Sourcepub fn failure_code(&self) -> Option<&'static str>
pub fn failure_code(&self) -> Option<&'static str>
The failure class of the strongest evidence: device loss, then out of memory, then validation. Internal errors name nothing.
Trait Implementations§
Source§impl Clone for GpuDiagnosticSnapshot
impl Clone for GpuDiagnosticSnapshot
Source§impl Debug for GpuDiagnosticSnapshot
impl Debug for GpuDiagnosticSnapshot
Source§impl Default for GpuDiagnosticSnapshot
impl Default for GpuDiagnosticSnapshot
impl Eq for GpuDiagnosticSnapshot
Source§impl PartialEq for GpuDiagnosticSnapshot
impl PartialEq for GpuDiagnosticSnapshot
impl StructuralPartialEq for GpuDiagnosticSnapshot
Auto Trait Implementations§
impl Freeze for GpuDiagnosticSnapshot
impl RefUnwindSafe for GpuDiagnosticSnapshot
impl Send for GpuDiagnosticSnapshot
impl Sync for GpuDiagnosticSnapshot
impl Unpin for GpuDiagnosticSnapshot
impl UnsafeUnpin for GpuDiagnosticSnapshot
impl UnwindSafe for GpuDiagnosticSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.