Enum dae_parser::ColorParam
source · [−]Expand description
A type that describes color attributes of fixed-function shader elements inside
ProfileCommon
effects.
Variants
Color(Box<[f32; 4]>)
The value is a literal color, specified by four floating-point numbers in RGBA order.
Param(Box<str>)
The value is specified by a reference to a previously defined parameter
in the current scope that can be cast directly to a float4
.
Texture(Box<Texture>)
The value is specified by a reference to a previously defined sampler2D
object.
Implementations
sourceimpl ColorParam
impl ColorParam
Trait Implementations
sourceimpl Clone for ColorParam
impl Clone for ColorParam
sourcefn clone(&self) -> ColorParam
fn clone(&self) -> ColorParam
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ColorParam
impl Debug for ColorParam
sourceimpl From<[f32; 4]> for ColorParam
impl From<[f32; 4]> for ColorParam
Auto Trait Implementations
impl RefUnwindSafe for ColorParam
impl Send for ColorParam
impl Sync for ColorParam
impl Unpin for ColorParam
impl UnwindSafe for ColorParam
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more