SubMeshDescriptor

csharp
public struct SubMeshDescriptor

Namespace NodeWorld.Flux.

A submesh as SetSubMesh sets it: a range of the index buffer, its topology, the vertex added to its indices.

Fields

indexStart

csharp
public int indexStart

The first index of the submesh in the index buffer.

indexCount

csharp
public int indexCount

The count of indices.

topology

csharp
public MeshTopology topology

How the indices are joined.

baseVertex

csharp
public int baseVertex

Added to every index of the submesh.

firstVertex

csharp
public int firstVertex

The first vertex the submesh uses (0: calculated).

vertexCount

csharp
public int vertexCount

The count of vertices the submesh uses (0: calculated).

Constructors

SubMeshDescriptor

csharp
public SubMeshDescriptor(int indexStart, int indexCount, MeshTopology topology = MeshTopology.Triangles)

A submesh of indexCount indices from indexStart.