pub enum Texture3dError {
Image(ImageError),
NonOpaquePixel {
texel: usize,
},
InvalidTint,
MissingTextureCoordinates,
RendererMismatch,
InvalidRegion,
MipmappedAtlasRegion,
}Expand description
Validation or allocation failure for a retained 3D texture/material.
Variants§
Image(ImageError)
Image dimensions, retained bytes, allocation or device limits failed.
NonOpaquePixel
The first texel with alpha other than 255 in row-major source order.
InvalidTint
Tint must be normalized linear RGBA; the legacy constructor also requires alpha one.
MissingTextureCoordinates
Attaching a texture requires a surface and one UV per mesh vertex.
RendererMismatch
Texture and mesh must belong to the renderer’s current device identity.
InvalidRegion
An atlas region does not fit the texture.
MipmappedAtlasRegion
Region-coordinate insets cannot isolate entries of a generated whole-atlas mip chain.
Trait Implementations§
Source§impl Clone for Texture3dError
impl Clone for Texture3dError
impl Copy for Texture3dError
Source§impl Debug for Texture3dError
impl Debug for Texture3dError
Source§impl Display for Texture3dError
impl Display for Texture3dError
impl Eq for Texture3dError
Source§impl Error for Texture3dError
impl Error for Texture3dError
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()
Source§impl From<Texture3dError> for Texture3dUpdateError
impl From<Texture3dError> for Texture3dUpdateError
Source§fn from(error: Texture3dError) -> Self
fn from(error: Texture3dError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Texture3dError
impl PartialEq for Texture3dError
impl StructuralPartialEq for Texture3dError
Auto Trait Implementations§
impl Freeze for Texture3dError
impl RefUnwindSafe for Texture3dError
impl Send for Texture3dError
impl Sync for Texture3dError
impl Unpin for Texture3dError
impl UnsafeUnpin for Texture3dError
impl UnwindSafe for Texture3dError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.