pub enum Error {
FailedToAcquireAdapter,
FailedToAcquireDevice(String),
TextureDataSizeMismatch {
expected: u32,
got: u32,
},
LackingTextureUsage(TextureUsages),
FailedToCreateSurface(String),
FailedToGetSurfaceTexture(String),
}
Expand description
An error from G2d.
Variants§
FailedToAcquireAdapter
When creating a Handle, G2d could not find a suitable adapter.
FailedToAcquireDevice(String)
The G2d Handle failed to acquire a wgpu::Device
.
TextureDataSizeMismatch
LackingTextureUsage(TextureUsages)
The Texture didn’t have the correct usage(s) for an operation.
FailedToCreateSurface(String)
The G2d Handle failed to create a wgpu::Surface
for its window.
FailedToGetSurfaceTexture(String)
G2d failed to get the texture of a wgpu::Surface
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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