Class Mesh
A renderable mesh encapsulating vertex data.
class Mesh(T)
if (isStruct!T);
Constructors
Name | Description |
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
Name | Type | Description |
attributeDescriptions [get]
|
VertexInputAttrib[] | Describes the format of this mesh's vertex attributes so that they can be applied to the vertex shader.
|
bindingDescription [get]
|
VertexInputBinding | Describes how this mesh's vertex attributes should be bound to the vertex shader.
|
size [get]
|
size_t | Size of this mesh, in bytes.
|
vertices [get]
|
const(T[]) | This mesh's vertex data.
|
Methods
Name | Description |
update
(vertices)
|
Update this mesh's vertex data.
|