Enum amethyst_renderer::Position [−][src]
pub enum Position {}Type for position attribute of vertex
Trait Implementations
impl Clone for Position[src]
impl Clone for Positionfn clone(&self) -> Position[src]
fn clone(&self) -> PositionReturns 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 Positionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Attribute for Position[src]
impl Attribute for Positionconst 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 PosColorconst 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 PosTexconst 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 PosNormTexconst 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 PosNormTangTexconst FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format