pub enum Texture3dError {
Image(ImageError),
NonOpaquePixel {
texel: usize,
},
InvalidTint,
MissingTextureCoordinates,
RendererMismatch,
InvalidRegion,
}Expand description
Validation or allocation failure for an opaque 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
A material tint must be normalized linear RGBA with alpha exactly 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.
Trait Implementations§
Source§impl Clone for Texture3dError
impl Clone for Texture3dError
Source§fn clone(&self) -> Texture3dError
fn clone(&self) -> Texture3dError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 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.