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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColorParam
impl Debug 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more