[][src]Trait nannou::wgpu::VertexDescriptor

pub trait VertexDescriptor {
    const STRIDE: BufferAddress;
    const ATTRIBUTES: &'static [VertexAttributeDescriptor];
}

A trait required to be implemented by vertices to provide a simpler render pipeline API.

Associated Constants

const STRIDE: BufferAddress

The stride, in bytes, between elements of this buffer.

const ATTRIBUTES: &'static [VertexAttributeDescriptor]

A description of each of the vertex's attributes.

Loading content...

Implementors

Loading content...