DarkBASIC Professional Help File

DX11 CREATE VERTEX

Creates a generic buffer that can hold a single vertex of a given vertex layout format.
The vertex has some functions to set its data members based on their semantic names / indices and the
idea is that you can fill out vertex data vertex by vertex through overwriting the same vertex and copying
its data to a buffer, to which you offset the write pointer by the vertex size for each insert.

Syntax

    Return Dword vertex  = DX11 CREATE VERTEX(vertLayout)

Parameters

    vertLayout

> Dword
> The created vertex will correspond to this vertex layout.

Returns

The vertex instance, as described above.

See also

VERTEXLAYOUT Functions Menu
DX11 Function Categories