DarkBASIC Professional Help File

DX11 SET CBUFFER DWORD

Sets a (unsigned) integer value at the given offset of the specified constant buffer.
Make sure that you will not write out of the buffer's bounds; the size of a DWORD is 4 bytes.

Syntax

    DX11 SET CBUFFER DWORD cbuffer, offset, data

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.

    data

> Dword
> The dword (32-bit unsigned integer) value to write to the constant buffer.

Returns

This function does not return a value.

See also

CONSTANTBUFFER Functions Menu
DX11 Function Categories