pub struct GpuError(/* private fields */);Expand description
Failure while acquiring a GPU context, with the platform reason as its
source.
Implementations§
Source§impl GpuError
impl GpuError
Sourcepub fn no_dx12_adapter() -> Self
pub fn no_dx12_adapter() -> Self
A DX12 backend that lists no adapter because its shader compiler did not load. Reported
as GpuAcquisitionStep::Instance.
Sourcepub fn adapters_seen(&self) -> &[AdapterRecord]
pub fn adapters_seen(&self) -> &[AdapterRecord]
Every adapter a request under crate::SoftwareAdapters::Refuse listed, with why none
rendered; empty for other errors.
Sourcepub const fn step(&self) -> GpuAcquisitionStep
pub const fn step(&self) -> GpuAcquisitionStep
The step that failed.
Trait Implementations§
Source§impl Error for GpuError
impl Error for GpuError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Forget for GpuError
impl Freeze for GpuErrorwhere
InternalBitFlags: Freeze,
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
&'static str: Freeze,
String: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ParseError is !null: Freeze,
PhantomData<ParseError>: Freeze,
*const WithSpan<ValidationError> is !null: Freeze,
PhantomData<WithSpan<ValidationError>>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
NonZero<u64>: Freeze,
PhantomData<MaxVertexShaderOutputDeduction>: Freeze,
PhantomData<MaxFragmentShaderInputDeduction>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<AdapterRecord>: Freeze,
impl Move for GpuError
impl RefUnwindSafe for GpuErrorwhere
InternalBitFlags: RefUnwindSafe,
String: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
impl Send for GpuErrorwhere
InternalBitFlags: Send,
BoxRaw<DeviceMismatch>: Send,
&'static str: Send,
String: Send,
RawVecInner: Send,
BoxRaw<ParseError>: Send,
BoxRaw<WithSpan<ValidationError>>: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
NonZero<u64>: Send,
impl Sync for GpuError
impl Unpin for GpuErrorwhere
InternalBitFlags: Unpin,
Box<DeviceMismatch>: Unpin,
&'static str: Unpin,
String: Unpin,
*const u8 is !null: Unpin,
Box<ParseError>: Unpin,
Box<WithSpan<ValidationError>>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
NonZero<u64>: Unpin,
impl UnsafeUnpin for GpuErrorwhere
InternalBitFlags: UnsafeUnpin,
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ParseError is !null: UnsafeUnpin,
PhantomData<ParseError>: UnsafeUnpin,
*const WithSpan<ValidationError> is !null: UnsafeUnpin,
PhantomData<WithSpan<ValidationError>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<MaxVertexShaderOutputDeduction>: UnsafeUnpin,
PhantomData<MaxFragmentShaderInputDeduction>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<AdapterRecord>: UnsafeUnpin,
impl UnwindSafe for GpuErrorwhere
InternalBitFlags: UnwindSafe,
BoxRaw<DeviceMismatch>: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<ParseError>: UnwindSafe,
BoxRaw<WithSpan<ValidationError>>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<u64>: UnwindSafe,
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