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 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 Freeze for GpuError
impl RefUnwindSafe for GpuError
impl Send for GpuError
impl Sync for GpuError
impl Unpin for GpuError
impl UnsafeUnpin for GpuError
impl UnwindSafe for GpuError
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