DarkBASIC Professional Help File

DX11 GET CBUFFER SIZE

Retrieves the byte size of the given constant buffer.
Due to packing rules, a constant buffer always has a size that is a even multiple of 16 bytes.

Syntax

    Return Dword = DX11 GET CBUFFER SIZE(cbuffer)

Parameters

    cbuffer

> Dword
> The constant buffer to get the size of.

Returns

The size (in bytes) of the given constant buffer.

See also

CONSTANTBUFFER Functions Menu
DX11 Function Categories