[][src]Enum screen_13::gpu::vertex::Vertex

pub enum Vertex {
    Normal(NormalVertex),
    NormalEx(NormalVertexEx),
    Skin(SkinVertex),
    SkinEx(SkinVertexEx),
}

Defines all supported vertex formats.

Variants

Normal(NormalVertex)

The "easy" vertex. If you are not sure what you want, this is probably it.

NormalEx(NormalVertexEx)

Same as Normal, except that the additional vertex attributes (normal and tanget) are specified here as opposed to being calculated before use.

Only needed if you want more control over the normal/tangent generation process.

Same as Normal, except that additional vertex attributes for joints and weights are added.

SkinEx(SkinVertexEx)

Like NormalEx, a combination of Skin and extra normal and tangent vertex attributes.

Only needed if you want more control over the normal/tangent generation process.

Implementations

impl Vertex[src]

pub fn is_finite(self) -> bool[src]

Returns true if all fields are finite.

Trait Implementations

impl Clone for Vertex[src]

impl Copy for Vertex[src]

impl Debug for Vertex[src]

impl Eq for Vertex[src]

impl From<&'_ NormalVertex> for Vertex[src]

impl From<&'_ NormalVertexEx> for Vertex[src]

impl From<&'_ SkinVertex> for Vertex[src]

impl From<&'_ SkinVertexEx> for Vertex[src]

impl From<[f32; 12]> for Vertex[src]

impl From<[f32; 13]> for Vertex[src]

impl From<[f32; 20]> for Vertex[src]

impl From<[f32; 5]> for Vertex[src]

impl From<([f32; 3], [f32; 2])> for Vertex[src]

impl From<([f32; 3], [f32; 3], [f32; 4], [f32; 2])> for Vertex[src]

impl From<([f32; 3], [f32; 3], [f32; 4], [f32; 4], [f32; 4], [f32; 2])> for Vertex[src]

impl From<([f32; 3], [f32; 4], [f32; 4], [f32; 2])> for Vertex[src]

impl From<(Vec3, Vec2)> for Vertex[src]

impl From<(Vec3, Vec3, Vec4, Vec2)> for Vertex[src]

impl From<(Vec3, Vec3, Vec4, Vec4, Vec4, Vec2)> for Vertex[src]

impl From<(Vec3, Vec4, Vec4, Vec2)> for Vertex[src]

impl From<NormalVertex> for Vertex[src]

impl From<NormalVertexEx> for Vertex[src]

impl From<SkinVertex> for Vertex[src]

impl From<SkinVertexEx> for Vertex[src]

impl Ord for Vertex[src]

impl PartialEq<Vertex> for Vertex[src]

impl PartialOrd<Vertex> for Vertex[src]

impl StructuralEq for Vertex[src]

impl StructuralPartialEq for Vertex[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.