DarkBASIC Professional Help File

DX11 GET VERTEX INTEGER

Gets the integer value for the specified semantic or offset within the given vertex buffer.

Syntax

    Return Integer = DX11 GET VERTEX INTEGER(vertex, semanticName, [semanticIndex], offset)

Parameters

    vertex

> Dword
> The vertex to get the semantic / data at the offset position of

> .

    semanticName

> String
> The semantic name of the data element to get for the vertex.

    [Optional] semanticIndex

> Dword
> The semantic index of the data element to get for the vertex. Defaults to 0.
> OR.

    offset

> Dword
> The offset to which to read the value from the vertex buffer. Note that this function takes either a semantic name and optionally an id, or an offset; not both..

Returns

The value of the specified semantic / offset within the vertex buffer.

See also

VERTEXLAYOUT Functions Menu
DX11 Function Categories