[][src]Struct luminance::vertex::VertexBufferDesc

pub struct VertexBufferDesc {
    pub index: usize,
    pub name: &'static str,
    pub instancing: VertexInstancing,
    pub attrib_desc: VertexAttribDesc,
}

A vertex attribute descriptor in a vertex buffer.

Such a description is used to state what vertex buffers are made of and how they should be aligned / etc.

Fields

index: usize

Internal index of the attribute.

That index is used as a mapping with vertex shaders to know how to fetch vertex attributes.

name: &'static str

The name of the attribute.

Such a name is used in vertex shaders to perform mapping.

instancing: VertexInstancing

Whether vertex instancing should be used with that vertex attribute.

attrib_desc: VertexAttribDesc

Vertex attribute descriptor.

Methods

impl VertexBufferDesc[src]

pub fn new<S>(
    sem: S,
    instancing: VertexInstancing,
    attrib_desc: VertexAttribDesc
) -> Self where
    S: Semantics
[src]

Create a new VertexBufferDesc.

Trait Implementations

impl Eq for VertexBufferDesc[src]

impl Clone for VertexBufferDesc[src]

impl PartialEq<VertexBufferDesc> for VertexBufferDesc[src]

impl Copy for VertexBufferDesc[src]

impl Hash for VertexBufferDesc[src]

impl Debug for VertexBufferDesc[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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