DarkBASIC Professional Help File

DX11 SET CONSTANT BUFFER

This function can be used to reset the constant buffer bound to a certain stage of the given shader technique.
This is useful if you need to change constant buffers used by a certain technique (however for most circumstances
it might be better to create two different shader techniques if you need such behaviour).
Can be changed during runtime. Note that the slot you are setting must have been previously added to the given shader technique using DX11 ADD CONSTANT BUFFER.

Syntax

    DX11 SET CONSTANT BUFFER shaderTechnique, stage, cbuffer

Parameters

    shaderTechnique

> Dword
> The shader technique to set the constant buffer of.

    stage

> Dword
> The constant buffer stage to update (the valid range is [1..11]).

    cbuffer

> Dword
> The constant buffer to set for the shader technique.

Returns

This function does not return a value.

See also

SHADERTECHNIQUE Functions Menu
DX11 Function Categories