#[non_exhaustive]pub enum Uniform {
Float(FVec4),
Float2([FVec4; 2]),
Float3([FVec4; 3]),
Float4(Matrix4),
Bool(bool),
Int(IVec),
}
Expand description
A uniform which may be bound as input to a shader program
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Float(FVec4)
Single float uniform (.fvec name
)
Float2([FVec4; 2])
Two element float uniform (.fvec name[2]
)
Float3([FVec4; 3])
Three element float uniform (.fvec name [3]
)
Float4(Matrix4)
Matrix/4 element float uniform (.fvec name[4]
)
Bool(bool)
Bool uniform (.bool name
)
Int(IVec)
Integer uniform (.ivec name
)
Implementations§
Trait Implementations§
impl Copy for Uniform
impl StructuralPartialEq for Uniform
Auto Trait Implementations§
impl RefUnwindSafe for Uniform
impl Send for Uniform
impl Sync for Uniform
impl Unpin for Uniform
impl UnwindSafe for Uniform
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more