IPixShaderProfilingLive::ProfilePipeline method

Profiles the shader pipeline for the specified event range.

Syntax

HRESULT ProfilePipeline(
    const PIX_EVENT_INFO * eventStart,
    const PIX_EVENT_INFO * eventEnd,
    IPixProgressNotifications * notifications,
    IPixCancellationToken * cancellationToken,
    REFIID riid,
    void ** profilingResult);

Parameters

eventStart [in]

The start event of the range to profile.

eventEnd [in]

The end event of the range to profile.

notifications [in]

Notification callback for progress updates (optional)

cancellationToken [in]

Cancellation token to cancel the profiling (optional)

riid [in]

The interface IID of the object to be returned. Expected: IPixShaderProfilingLiveResult.

profilingResult [out]

The pointer to the returned interface

Returns

S_OK on success, otherwise an error code.

Remarks

eventEnd->MomentHandle must be >= eventStart->MomentHandle.

Note

An event range containing no draws or dispatches yields an empty result

See also