Enum gfx::texture::CreationError
source · pub enum CreationError {
Format(SurfaceType, Option<ChannelType>),
Kind,
Samples(AaMode),
Size(u16),
Data(usize),
Usage(Usage),
Mipmap,
Level(u8),
}
Expand description
Pure texture object creation error.
Variants§
Format(SurfaceType, Option<ChannelType>)
Failed to map a given format to the device.
Kind
The kind doesn’t support a particular operation.
Samples(AaMode)
Failed to map a given multisampled kind to the device.
Size(u16)
Unsupported size in one of the dimensions.
Data(usize)
The given data has a different size than the target texture slice.
Usage(Usage)
The mentioned usage mode is not supported
Mipmap
The requested mipmap creation parameter is unsupported.
Level(u8)
The requested mipmap level count does not match the provided data.
Trait Implementations§
source§impl Clone for CreationError
impl Clone for CreationError
source§fn clone(&self) -> CreationError
fn clone(&self) -> CreationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreationError
impl Debug for CreationError
source§impl Display for CreationError
impl Display for CreationError
source§impl Error for CreationError
impl Error for CreationError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<CreationError> for CombinedError
impl From<CreationError> for CombinedError
source§fn from(e: CreationError) -> CombinedError
fn from(e: CreationError) -> CombinedError
Converts to this type from the input type.
source§impl PartialEq<CreationError> for CreationError
impl PartialEq<CreationError> for CreationError
source§fn eq(&self, other: &CreationError) -> bool
fn eq(&self, other: &CreationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.