pub enum TextureTargetError {
InvalidTarget(&'static str),
DimensionsTooLarge,
UnsupportedTextureFormat,
CreateGpuContext(&'static str),
CreateGpuSurface,
UnsupportedGpuBackend,
}Expand description
Shared texture-render-target failures surfaced by texture renderers.
Variants§
InvalidTarget(&'static str)
The supplied texture target is not compatible with the renderer.
DimensionsTooLarge
The requested render dimensions exceed backend limits.
UnsupportedTextureFormat
The backend could not render to the requested texture format.
CreateGpuContext(&'static str)
The backend could not construct a GPU interop context from the supplied handles.
CreateGpuSurface
The backend could not wrap the target texture as a GPU render surface.
UnsupportedGpuBackend
No supported GPU backend was available for the supplied wgpu setup.
Trait Implementations§
Source§impl Debug for TextureTargetError
impl Debug for TextureTargetError
Source§impl Display for TextureTargetError
impl Display for TextureTargetError
Source§impl Error for TextureTargetError
impl Error for TextureTargetError
1.30.0 · 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 TextureTargetError
impl RefUnwindSafe for TextureTargetError
impl Send for TextureTargetError
impl Sync for TextureTargetError
impl Unpin for TextureTargetError
impl UnsafeUnpin for TextureTargetError
impl UnwindSafe for TextureTargetError
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