DarkBASIC Professional Help File

DX11 GET BUFFER SIZE

Retrieves the size of the specified buffer resource like so:

- Number of elements for array buffers and structured buffers
- Maximum number of elements for append/consume buffers
- Total buffer size in bytes for byte address buffers

.

Syntax

    Return Dword = DX11 GET BUFFER SIZE(buffer)

Parameters

    buffer

> Dword
> The buffer to retrieve the size of.

Returns

The size of the specified buffer (see the list above for detailed information on what kind of information is returned for what buffer).

See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories