IPixShaderVariable::GetValues method

Gets this variable's value(s), one per lane it was evaluated for.

Syntax

HRESULT GetValues(
    REFIID riid,
    void ** values);

Parameters

riid [in]

The interface IID of the object to be returned. Expected: IPixCollection<IPixShaderVariableLaneValue>.

values [out]

The pointer to the returned interface

Returns

S_OK on success, otherwise an error code.

Remarks

A variable obtained from IPixShaderWave::GetVariables or IPixShaderLane::GetVariables always yields exactly one value. A variable obtained from IPixShaderWave::EvaluateExpression yields one value per lane selected by the caller's laneMask, in the same order the lanes were selected.

See also