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.
fault is read from status by the helper’s backend, which knows its
API’s codes, so a caller classifies the failure by it rather than by the
message: the message names the operation, the step and the raw status,
never the fault.
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: i32The status the call returned: a VkResult, an HRESULT (as its
bits), or a CVReturn. Zero when the step is the helper’s own check.
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