#[non_exhaustive]pub enum GpuFault {
DeviceLost,
DeviceMemory,
HostMemory,
Timeout,
}Expand description
What a failed GPU call says about the device it ran on, read from the
platform’s own status for that call (a VkResult, HRESULT, or
CVReturn) where it failed, not from any message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeviceLost
The device was lost or removed; nothing more runs on it.
DeviceMemory
The device could not allocate memory of its own.
HostMemory
The driver could not allocate host (CPU) memory for the call.
Timeout
GPU work the call waited on did not complete within the wait timeout.
Implementations§
Trait Implementations§
impl Copy for GpuFault
impl Eq for GpuFault
impl StructuralPartialEq for GpuFault
Auto Trait Implementations§
impl Freeze for GpuFault
impl RefUnwindSafe for GpuFault
impl Send for GpuFault
impl Sync for GpuFault
impl Unpin for GpuFault
impl UnsafeUnpin for GpuFault
impl UnwindSafe for GpuFault
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