DarkBASIC Professional Help File

DX11 GET SPRITE CONSTANT BUFFER

Retrieves the constant buffer currently associated with the given sprite.
If there is no such constant buffers (sprites don't have them by default) nullptr is returned, so this needs to be checked before trying to use the returned reference.

Syntax

    Return Dword = DX11 GET SPRITE CONSTANT BUFFER(sprite)

Parameters

    sprite

> Dword
> The sprite to retrieve the constant buffer of.

Returns

The constant buffer currently associated with the given sprite, or nullptr (0) if the sprite doesn't have any constant buffer.

See also

SPRITE Functions Menu
DX11 Function Categories