DarkBASIC Professional Help File

DX11 SET CBUFFER VECTOR4

Sets a vector4 value at the given offset of the specified constant buffer.
Make sure that you will not write out of the buffer's bounds; a VECTOR4 is the same as four contiguous floats so it will need 4 x 4 = 16 bytes to store.

Syntax

    DX11 SET CBUFFER VECTOR4 cbuffer, offset, vector

Parameters

    cbuffer

> Dword
> The constant buffer to set the data for.

    offset

> Dword
> Offset from the start of the buffer to write the data to.

    vector

> Dword
> The vector to copy to the constant buffer.

Returns

This function does not return a value.

See also

CONSTANTBUFFER Functions Menu
DX11 Function Categories