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 log was last cleared, kept or dropped, was an out-of-memory report.
An allocation that ran out leaves an invalid resource behind, and every later use of it is reported as a validation error, so the report that names the cause is the first to be pushed 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 the strongest evidence here names, if any: a device loss first, since everything after it fails too; then an out-of-memory report, kept or dropped; then a validation error. 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.