pub enum TexImageValidationError {
Show 17 variants
InvalidTextureTarget(u32),
TextureTargetNotBound(u32),
InvalidCubicTextureDimensions,
NegativeLevel,
LevelTooHigh,
LevelTooLow,
DepthTooLow,
NegativeDimension,
TextureTooBig,
InvalidDataType,
InvalidTextureFormat,
TextureFormatMismatch,
InvalidTypeForFormat,
InvalidBorder,
NonPotTexture,
InvalidCompressionFormat,
InvalidOffsets,
}
Expand description
The errors that the texImage* family of functions can generate.
Variants§
InvalidTextureTarget(u32)
An invalid texture target was passed, it contains the invalid target.
TextureTargetNotBound(u32)
The passed texture target was not bound.
InvalidCubicTextureDimensions
Invalid texture dimensions were given.
NegativeLevel
A negative level was passed.
LevelTooHigh
A level too high to be allowed by the implementation was passed.
LevelTooLow
A level less than an allowed minimal value was passed.
DepthTooLow
A depth less than an allowed minimal value was passed.
NegativeDimension
A negative width and height was passed.
TextureTooBig
A bigger with and height were passed than what the implementation allows.
InvalidDataType
An invalid data type was passed.
InvalidTextureFormat
An invalid texture format was passed.
TextureFormatMismatch
Format did not match internal_format.
InvalidTypeForFormat
Invalid data type for the given format.
InvalidBorder
Invalid border
NonPotTexture
Expected a power of two texture.
InvalidCompressionFormat
Unrecognized texture compression format.
InvalidOffsets
Invalid X/Y texture offset parameters.
Trait Implementations§
source§impl Debug for TexImageValidationError
impl Debug for TexImageValidationError
source§impl Display for TexImageValidationError
impl Display for TexImageValidationError
source§impl Error for TexImageValidationError
impl Error for TexImageValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for TexImageValidationError
impl RefUnwindSafe for TexImageValidationError
impl Send for TexImageValidationError
impl Sync for TexImageValidationError
impl Unpin for TexImageValidationError
impl UnwindSafe for TexImageValidationError
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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