Home -> IStateBuffer -> SetStateValue

Description

The SetStateValue method updates the target state variable in the first page of the buffer with the supplied value.

Usage

template<class T> void SetStateValue(StateValueId stateId, const T& value);
template<class T, class... IndexTs> void SetStateValue(StateValueId stateId, const T& value, size_t firstArrayIndex, IndexTs... additionalArrayIndices);
template<class T> void SetStateValue(StateValueId stateId, const T& value, const size_t* arrayIndices, size_t arrayIndexCount);

Argument list

stateId [StateValueId]
The state value ID to update.
value [const T]
The value to assign. The value type must match the state value type in the bound layout or compiled shader.

See also