Struct amethyst_renderer::PosNormTangTex [−][src]
#[repr(C)]pub struct PosNormTangTex { pub position: [f32; 3], pub normal: [f32; 3], pub tangent: [f32; 3], pub tex_coord: [f32; 2], }
Vertex format with position, normal, and UV texture coordinate attributes.
Fields
position: [f32; 3]
Position of the vertex in 3D space.
normal: [f32; 3]
Normal vector of the vertex.
tangent: [f32; 3]
Tangent vector of the vertex.
tex_coord: [f32; 2]
UV texture coordinates used by the vertex.
Trait Implementations
impl Clone for PosNormTangTex[src]
impl Clone for PosNormTangTexfn clone(&self) -> PosNormTangTex[src]
fn clone(&self) -> PosNormTangTexReturns 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)Performs copy-assignment from source. Read more
impl Copy for PosNormTangTex[src]
impl Copy for PosNormTangTeximpl Debug for PosNormTangTex[src]
impl Debug for PosNormTangTexfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for PosNormTangTex[src]
impl PartialEq for PosNormTangTexfn eq(&self, other: &PosNormTangTex) -> bool[src]
fn eq(&self, other: &PosNormTangTex) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PosNormTangTex) -> bool[src]
fn ne(&self, other: &PosNormTangTex) -> boolThis method tests for !=.
impl Pod for PosNormTangTex[src]
impl Pod for PosNormTangTeximpl VertexFormat for PosNormTangTex[src]
impl VertexFormat for PosNormTangTexconst ATTRIBUTES: Attributes<'static>
ATTRIBUTES: Attributes<'static> = &[(<Position>::NAME, <Self as With::<Position>>::FORMAT), (<Normal>::NAME, <Self as With::<Normal>>::FORMAT), (<Tangent>::NAME, <Self as With::<Tangent>>::FORMAT), (<TexCoord>::NAME, <Self as With::<TexCoord>>::FORMAT)]
List of all attributes formats with name and offset.
fn size() -> usize[src]
fn size() -> usizeReturns the size of a single vertex in bytes.
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>, [src]
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>, Returns attribute of vertex by type
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
impl With<Normal> for PosNormTangTex[src]
impl With<Normal> for PosNormTangTexconst FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: <Position>::SIZE, format: <Normal>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<Tangent> for PosNormTangTex[src]
impl With<Tangent> for PosNormTangTexconst FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: <Position>::SIZE + <Normal>::SIZE, format: <Tangent>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<TexCoord> for PosNormTangTex[src]
impl With<TexCoord> for PosNormTangTexconst FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: <Position>::SIZE + <Normal>::SIZE + <Tangent>::SIZE, format: <TexCoord>::FORMAT,}
Individual format of the attribute for this vertex format
Auto Trait Implementations
impl Send for PosNormTangTex
impl Send for PosNormTangTeximpl Sync for PosNormTangTex
impl Sync for PosNormTangTex