Class Mesh

A renderable mesh encapsulating vertex data.

class Mesh(T)
  
if (isStruct!T);

Constructors

NameDescription
this (vertices, indices) Initialize a new mesh.
this (topology, vertices, indices) Initialize a new mesh.
this (name, vertices, indices) Initialize a new named mesh.
this (name, topology, vertices, indices) Initialize a new named mesh.

Properties

NameTypeDescription
attributeDescriptions[get] VertexInputAttrib[]Describes the format of this mesh's vertex attributes so that they can be applied to the vertex shader.
bindingDescription[get] VertexInputBindingDescribes how this mesh's vertex attributes should be bound to the vertex shader.
size[get] size_tSize of this mesh, in bytes.
vertices[get] const(T[])This mesh's vertex data.

Methods

NameDescription
update (vertices) Update this mesh's vertex data.