DarkBASIC Professional Help File

DX11 GET APPEND CONSUME BUFFER ELEMENT COUNT

Retrieves the current append/consume buffer element count from the GPU.
This means that data has to be read back from the GPU and for the highest possible efficiency this function should therefore not be continuously polled.
You are recommended to call it after a compute / pixel shader has potentially altered the count of the buffer and then store the returned number for future use until the buffer
contents change again.

Syntax

    Return Integer = DX11 GET APPEND CONSUME BUFFER ELEMENT COUNT(appendConsumeBuffer)

Parameters

    appendConsumeBuffer

> Dword
> The append/consume buffer to get the current element count of.

Returns

The current element count of the append/consume buffer, or the maximum number of elements this structured buffer can hold if the function is called for a non-append/consume buffer.

See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories