Enum amethyst_renderer::Position [−][src]
pub enum Position {}
Type for position attribute of vertex
Trait Implementations
impl Clone for Position
[src]
impl Clone for Position
fn clone(&self) -> Position
[src]
fn clone(&self) -> Position
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 Position
[src]
impl Debug for Position
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 Position
[src]
impl Attribute for Position
const NAME: &'static str
NAME: &'static str = "position"
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, ChannelType::Float)
Format of the attribute defines arity and type
const SIZE: u32
SIZE: u32 = 12
Size of the attribue
type Repr = [f32; 3]
Representation of the attribute usually it is [f32; N]
Read more
impl With<Position> for PosColor
[src]
impl With<Position> for PosColor
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<Position> for PosTex
[src]
impl With<Position> for PosTex
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<Position> for PosNormTex
[src]
impl With<Position> for PosNormTex
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<Position> for PosNormTangTex
[src]
impl With<Position> for PosNormTangTex
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format