pub enum UniformError {
NoUniform {
name: String,
},
WrongSize {
name: String,
size: usize,
expected: usize,
},
IndexOutOfBounds {
name: String,
index: usize,
},
NotAMultiple {
name: String,
size: usize,
element_size: usize,
},
NotAnImageSampler {
name: String,
},
}Expand description
Why a uniform could not be looked up: the ArgumentErrors and IndexErrors Dart throws, each
displayed with Dart’s message.
Variants§
NoUniform
The program has no uniform of that name.
WrongSize
The uniform has another number of floats than the slot asked for.
IndexOutOfBounds
A float slot past the uniform’s floats.
NotAMultiple
An array asked of a uniform whose floats do not divide into its elements.
NotAnImageSampler
An image sampler asked of a float uniform.
Trait Implementations§
Source§impl Clone for UniformError
impl Clone for UniformError
Source§impl Debug for UniformError
impl Debug for UniformError
Source§impl Display for UniformError
impl Display for UniformError
impl Eq for UniformError
Source§impl Error for UniformError
impl Error for UniformError
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 UniformError
impl PartialEq for UniformError
impl StructuralPartialEq for UniformError
Auto Trait Implementations§
impl Forget for UniformError
impl Freeze for UniformError
impl Move for UniformError
impl RefUnwindSafe for UniformError
impl Send for UniformErrorwhere
RawVecInner: Send,
impl Sync for UniformErrorwhere
RawVecInner: Sync,
impl Unpin for UniformError
impl UnsafeUnpin for UniformError
impl UnwindSafe for UniformErrorwhere
RawVecInner: UnwindSafe,
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.