DarkBASIC Professional Help File

DX11 GET MESH VERTEXDATA BYTE

Retrieves a single byte from the given offset from the given vertex id in the vertex data of the specified mesh.
This function will trigger an error message if the provided vertex / offset is not valid in the vertex data of the specified mesh.
Use DX11 GET MESH VERTEXDATA VERTEX COUNT and DX11 GET MESH VERTEXDATA SEMANTIC OFFSET to ensure your values are valid.

Syntax

    Return Byte = DX11 GET MESH VERTEXDATA BYTE(mesh, vertex, offset)

Parameters

    mesh

> Dword
> The mesh from whiches vertex data the byte will be read.

    vertex

> Dword
> The vertex to read the byte from.

    offset

> Dword
> The offset from the start of the vertex' data to read at. Use DX11 GET MESH VERTEXDATA SEMANTIC OFFSET to find offsets by semantics.

Returns

The byte read from the given position.

See also

MESH Functions Menu
DX11 Function Categories