Home -> IStateBuffer -> SetStateValueForPage

Description

The SetStateValueForPage method updates the target state variable in the specified page of the buffer with the supplied value.

Usage

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

Argument list

pageNo [uint32_t]
The state buffer page to update.
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