Enum bevy_retrograde::core::luminance::shader::UniformWarning [−]
#[non_exhaustive] pub enum UniformWarning { Inactive(String), TypeMismatch(String, UniformType), UnsupportedType(String, UniformType), }
Expand description
Warnings related to uniform issues.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Inactive(String)
Inactive uniform (not in use / no participation to the final output in shaders).
TypeMismatch(String, UniformType)
Type mismatch between the static requested type (i.e. the T
in Uniform<T>
for instance)
and the type that got reflected from the backend in the shaders.
The String
is the name of the uniform; the second one gives the type mismatch.
UnsupportedType(String, UniformType)
The requested type is unsupported by the backend.
The String
is the name of the uniform. The UniformType
is the type that is not
supported by the backend.
Implementations
impl UniformWarning
impl UniformWarning
pub fn inactive<N>(name: N) -> UniformWarning where
N: Into<String>,
pub fn inactive<N>(name: N) -> UniformWarning where
N: Into<String>,
Create an inactive uniform warning.
pub fn type_mismatch<N>(name: N, ty: UniformType) -> UniformWarning where
N: Into<String>,
pub fn type_mismatch<N>(name: N, ty: UniformType) -> UniformWarning where
N: Into<String>,
Create a type mismatch.
pub fn unsupported_type<N>(name: N, ty: UniformType) -> UniformWarning where
N: Into<String>,
pub fn unsupported_type<N>(name: N, ty: UniformType) -> UniformWarning where
N: Into<String>,
Create an unsupported type error.
Trait Implementations
impl Debug for UniformWarning
impl Debug for UniformWarning
impl Display for UniformWarning
impl Display for UniformWarning
impl Error for UniformWarning
impl Error for UniformWarning
impl From<UniformWarning> for ProgramWarning
impl From<UniformWarning> for ProgramWarning
pub fn from(e: UniformWarning) -> ProgramWarning
pub fn from(e: UniformWarning) -> ProgramWarning
Performs the conversion.
impl PartialEq<UniformWarning> for UniformWarning
impl PartialEq<UniformWarning> for UniformWarning
pub fn eq(&self, other: &UniformWarning) -> bool
pub fn eq(&self, other: &UniformWarning) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &UniformWarning) -> bool
pub fn ne(&self, other: &UniformWarning) -> bool
This method tests for !=
.
impl Eq for UniformWarning
impl StructuralEq for UniformWarning
impl StructuralPartialEq for UniformWarning
Auto Trait Implementations
impl RefUnwindSafe for UniformWarning
impl Send for UniformWarning
impl Sync for UniformWarning
impl Unpin for UniformWarning
impl UnwindSafe for UniformWarning
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V