pub struct NativeGpuFailure {
pub backend: NativeGpuBackend,
pub operation: &'static str,
pub step: &'static str,
pub status: i32,
pub fault: Option<GpuFault>,
}Expand description
A platform GPU call that failed inside a native interop helper.
Classify by fault, which the backend reads from status, not by the message.
Fields§
§backend: NativeGpuBackendThe API the call belongs to.
operation: &'static strWhat the helper was doing, such as encode copy.
step: &'static strThe step of it that failed, such as queue submit.
status: i32A VkResult, HRESULT bits, or CVReturn; zero when the helper’s own check failed.
fault: Option<GpuFault>What the status is evidence of, when it names a fault.
Trait Implementations§
Source§impl Clone for NativeGpuFailure
impl Clone for NativeGpuFailure
impl Copy for NativeGpuFailure
Source§impl Debug for NativeGpuFailure
impl Debug for NativeGpuFailure
Source§impl Display for NativeGpuFailure
impl Display for NativeGpuFailure
impl Eq for NativeGpuFailure
Source§impl PartialEq for NativeGpuFailure
impl PartialEq for NativeGpuFailure
impl StructuralPartialEq for NativeGpuFailure
Auto Trait Implementations§
impl Freeze for NativeGpuFailure
impl RefUnwindSafe for NativeGpuFailure
impl Send for NativeGpuFailure
impl Sync for NativeGpuFailure
impl Unpin for NativeGpuFailure
impl UnsafeUnpin for NativeGpuFailure
impl UnwindSafe for NativeGpuFailure
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