pub enum ColorParam {
Color(Box<[f32; 4]>),
Param(Box<str>),
Texture(Box<Texture>),
}
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§
Source§impl ColorParam
impl ColorParam
Trait Implementations§
Source§impl Clone for ColorParam
impl Clone for ColorParam
Source§fn clone(&self) -> ColorParam
fn clone(&self) -> ColorParam
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 ColorParam
impl Debug for ColorParam
Auto Trait Implementations§
impl Freeze for ColorParam
impl RefUnwindSafe for ColorParam
impl Send for ColorParam
impl Sync for ColorParam
impl Unpin for ColorParam
impl UnwindSafe for ColorParam
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more