pub enum UniformVariable {
Texture(TextureHandle),
RenderTexture(RenderTextureHandle),
I32(i32),
F32(f32),
Vector2f([f32; 2]),
Vector3f([f32; 3]),
Vector4f([f32; 4]),
Matrix2f([[f32; 2]; 2], bool),
Matrix3f([[f32; 3]; 3], bool),
Matrix4f([[f32; 4]; 4], bool),
}
Expand description
Uniform variable for video program object. Each matrix based UniformVariable
is assumed to be supplied in row major order with a optional transpose.
Variants§
Texture(TextureHandle)
RenderTexture(RenderTextureHandle)
I32(i32)
F32(f32)
Vector2f([f32; 2])
Vector3f([f32; 3])
Vector4f([f32; 4])
Matrix2f([[f32; 2]; 2], bool)
Matrix3f([[f32; 3]; 3], bool)
Matrix4f([[f32; 4]; 4], bool)
Implementations§
source§impl UniformVariable
impl UniformVariable
pub fn variable_type(&self) -> UniformVariableType
Trait Implementations§
source§impl Clone for UniformVariable
impl Clone for UniformVariable
source§fn clone(&self) -> UniformVariable
fn clone(&self) -> UniformVariable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniformVariable
impl Debug for UniformVariable
source§impl Into<UniformVariable> for [[f32; 2]; 2]
impl Into<UniformVariable> for [[f32; 2]; 2]
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for [[f32; 3]; 3]
impl Into<UniformVariable> for [[f32; 3]; 3]
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for [[f32; 4]; 4]
impl Into<UniformVariable> for [[f32; 4]; 4]
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for [f32; 2]
impl Into<UniformVariable> for [f32; 2]
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for [f32; 3]
impl Into<UniformVariable> for [f32; 3]
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for [f32; 4]
impl Into<UniformVariable> for [f32; 4]
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for Matrix2<f32>
impl Into<UniformVariable> for Matrix2<f32>
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for Matrix3<f32>
impl Into<UniformVariable> for Matrix3<f32>
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for Matrix4<f32>
impl Into<UniformVariable> for Matrix4<f32>
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for RenderTextureHandle
impl Into<UniformVariable> for RenderTextureHandle
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for TextureHandle
impl Into<UniformVariable> for TextureHandle
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for Vector2<f32>
impl Into<UniformVariable> for Vector2<f32>
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for Vector3<f32>
impl Into<UniformVariable> for Vector3<f32>
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for Vector4<f32>
impl Into<UniformVariable> for Vector4<f32>
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for f32
impl Into<UniformVariable> for f32
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
source§impl Into<UniformVariable> for i32
impl Into<UniformVariable> for i32
source§fn into(self) -> UniformVariable
fn into(self) -> UniformVariable
Converts this type into the (usually inferred) input type.
impl Copy for UniformVariable
Auto Trait Implementations§
impl RefUnwindSafe for UniformVariable
impl Send for UniformVariable
impl Sync for UniformVariable
impl Unpin for UniformVariable
impl UnwindSafe for UniformVariable
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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