DarkBASIC Professional Help File

DX11 CREATE VERTEX LAYOUT

Creates a new, empty vertex layout.
Vertex layouts are completely customizable and describe the data structure of a vertex;
it essentially replaces the flexible vertex format (FVF) system used in DirectX 9.
A vertex layout is used to describe the format that a mesh stores its vertices in; this format
must also map precisely to the struct you use for input to your vertex shader for a
particular object / limb (plus that it must have the added two matrices for instance world and
world-view-projection matrices; this data is automatically added to the vertex layout when you
call DX11 FINALIZE VERTEX LAYOUT in this version of the plugin - you should not add it yourself).
Take note that in order to set your vertex layout to an object / vertex shader, you must first
fill it out with any data elements it requires and then call DX11 FINALIZE VERTEX LAYOUT.

Syntax

    Return Dword = DX11 CREATE VERTEX LAYOUT()

Parameters

    This function does not take any parameters.

Returns

The created vertex layout, which will initially be empty.

See also

VERTEXLAYOUT Functions Menu
DX11 Function Categories