Enum amethyst_renderer::Color [−][src]
pub enum Color {}
Type for color attribute of vertex
Trait Implementations
impl Clone for Color
[src]
impl Clone for Color
fn clone(&self) -> Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Color
[src]
impl Debug for Color
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Attribute for Color
[src]
impl Attribute for Color
const NAME: &'static str
NAME: &'static str = "color"
Name of the attribute It is used to bind to the attributes in shaders Read more
const FORMAT: Format
FORMAT: Format = Format(SurfaceType::R32_G32_B32_A32, ChannelType::Unorm)
Format of the attribute defines arity and type
const SIZE: u32
SIZE: u32 = 16
Size of the attribue
type Repr = [f32; 4]
Representation of the attribute usually it is [f32; N]
Read more
impl With<Color> for PosColor
[src]
impl With<Color> for PosColor
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: <Position>::SIZE, format: <Color>::FORMAT,}
Individual format of the attribute for this vertex format