pub enum ImportTextureError {
Device(DeviceError),
UnsupportedTextureDescriptor,
ParameterOutOfRange(&'static str),
MissingEglContext,
MissingEglDisplay,
MissingImageDmaBufImportExtension,
MissingImageDmaBufImportModifiersExtension,
MissingEntryPoint(&'static str),
EglImageCreation(Option<Error>),
EglImageDestruction(Option<Error>),
GlTextureCreation(String),
BindAndConfigure {
gl_error: u32,
},
}Available on Unix and
native and gles only.Expand description
An error importing a texture into the GLES backend.
Variants§
Device(DeviceError)
The device reported an error.
UnsupportedTextureDescriptor
The descriptor requests an unsupported texture configuration.
ParameterOutOfRange(&'static str)
An import parameter cannot be represented as EGLint.
MissingEglContext
The device was not created from an EGL context.
MissingEglDisplay
The device does not expose an EGL display.
MissingImageDmaBufImportExtension
A required EXT_IMAGE_DMA_BUF_IMPORT extension is not supported.
MissingImageDmaBufImportModifiersExtension
A required EXT_IMAGE_DMA_BUF_IMPORT_MODIFIERS extension is not supported.
MissingEntryPoint(&'static str)
A required GL or EGL function is unavailable.
EglImageCreation(Option<Error>)
EGL image creation failed.
EglImageDestruction(Option<Error>)
EGL image destruction failed.
GlTextureCreation(String)
GL texture creation failed.
BindAndConfigure
Failed to bind or configure the imported texture.
Trait Implementations§
Source§impl Debug for ImportTextureError
impl Debug for ImportTextureError
Source§impl Display for ImportTextureError
impl Display for ImportTextureError
Source§impl Error for ImportTextureError
impl Error for ImportTextureError
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()
Source§impl From<DeviceError> for ImportTextureError
impl From<DeviceError> for ImportTextureError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImportTextureError
impl RefUnwindSafe for ImportTextureError
impl Send for ImportTextureError
impl Sync for ImportTextureError
impl Unpin for ImportTextureError
impl UnsafeUnpin for ImportTextureError
impl UnwindSafe for ImportTextureError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more