DarkBASIC Professional Help File

DX11 COPY VERTEX BUFFER DATA

Copies the data currently held by the given vertex to the provided pointer (can be a memblock pointer + the offset into it
or something else).
You have to make sure that the size of the vertex will fit in at the provided pointer!
This is useful for setting vertex data vertex by vertex, then copying the vertex data to a larger vertex buffer before overwriting the
vertex with the next data, then copying that into the next slot of the larger vertex buffer and so on.

Syntax

    DX11 COPY VERTEX BUFFER DATA vertex, ptr

Parameters

    vertex

> Dword
> The vertex which data is to be copied to the destination pointer.

    ptr

> Dword
> The raw memory pointer to which the vertex data will be copied (all in all DX11 GET VERTEX SIZE() bytes will be copied).

Returns

This function does not return a value.

See also

VERTEXLAYOUT Functions Menu
DX11 Function Categories