Struct sierra::VertexInputAttribute[][src]

pub struct VertexInputAttribute {
    pub location: u32,
    pub format: Format,
    pub binding: u32,
    pub offset: u32,
}

Vertex sub-range to attribute mapping.

Fields

location: u32

Attribute index. Each index must appear at most once in VertexInput::attributes array.

format: Format

Attribute format. Controls how attribute data is interpreted. Must match attribute type in vertex shader.

binding: u32

Index of vertex buffer from which attribute data is read from.

offset: u32

Offset of this attribute in the vertex buffer sub-range.

Trait Implementations

impl Clone for VertexInputAttribute[src]

impl Copy for VertexInputAttribute[src]

impl Debug for VertexInputAttribute[src]

impl Eq for VertexInputAttribute[src]

impl Hash for VertexInputAttribute[src]

impl PartialEq<VertexInputAttribute> for VertexInputAttribute[src]

impl StructuralEq for VertexInputAttribute[src]

impl StructuralPartialEq for VertexInputAttribute[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> Instrument for T[src]

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, 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.