NodeWorld

VertexAttributeDescriptor

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public struct VertexAttributeDescriptor

Namespace NodeWorld.Flux.

One attribute of the vertex layout (SetVertexBufferParams): which, in which format, how many values, in which stream (0 to 3).

Fields

attribute

csharp
public VertexAttribute attribute

The attribute.

format

csharp
public VertexAttributeFormat format

The format of each value.

dimension

csharp
public int dimension

How many values (1 to 4).

stream

csharp
public int stream

The vertex stream that holds it (0 to 3).

Constructors

VertexAttributeDescriptor

csharp
public VertexAttributeDescriptor(VertexAttribute attribute = VertexAttribute.Position, VertexAttributeFormat format = VertexAttributeFormat.Float32, int dimension = 3, int stream = 0)

An attribute of the layout.