pub enum CreationError {
Format(SurfaceType, Option<ChannelType>),
Kind,
Samples(AaMode),
Size(Size),
Data(usize),
Usage(Usage),
Mipmap,
Level(Level),
}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(Size)
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(Level)
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 duplicate 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)>
Returns 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 for CreationError
impl PartialEq for CreationError
impl Copy for CreationError
impl StructuralPartialEq for CreationError
Auto Trait Implementations§
impl Freeze for CreationError
impl RefUnwindSafe for CreationError
impl Send for CreationError
impl Sync for CreationError
impl Unpin for CreationError
impl UnwindSafe for CreationError
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