IPixShaderWave::EvaluateExpression method

Evaluates an expression for the given code type.

Syntax

HRESULT EvaluateExpression(
    LPCWSTR expression,
    PIX_SHADER_CODE_TYPE codeType,
    UINT64 laneMask,
    REFIID riid,
    void ** ppVariable);

Parameters

expression [in]

The expression to be evaluated

codeType [in]

The code type (HLSL/IL/ISA) of the shader expression to be evaluated

laneMask [in]

The lane mask specifying which lanes to evaluate the expression for. This has to be non-zero. Lanes in the laneMask start from the least significant bit e.g. if the expression should be evaluated for lanes 0, 4 and 5 then set laneMask to 0x31 (0b110001)

riid [in]

The interface IID of the object to be returned. Expected: IPixShaderVariable, or the session-specific IPixInteractiveShaderVariable for SetValue access. The result is the same variable shape returned by GetVariables/GetComponents; call GetValues() to retrieve the value evaluated for each lane in laneMask.

ppVariable [out]

The pointer to the returned interface

Returns

Returns a HRESULT value.

Remarks

laneMask must be non-zero.

See also