ShaderUniformValue
enum · ferroui-base · v0.5.0
enum ShaderUniformValue
The value of a uniform of the convention.
Members
Float
Float(f32)
A float.
Float2
Float2([f32; 2])
A float2.
Float4
Float4([f32; 4])
A float4.
Int
Int(i32)
An int.
ty
fn ty(self: &Self) -> ShaderUniformType
The type of the value.
from_parameter
fn from_parameter(value: &EffectParameterValue) -> Option<Self>
The uniform of a parameter value by the convention; None for text,
which has none, and for an image, which is a child.
floats
fn floats(self: &Self) -> &[f32]
The scalars of a float value, in order; empty for an int.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.