IPixGpuCaptureCounters::CollectCounters method

Collect specified set of counters.

Syntax

HRESULT CollectCounters(
    UINT64 counterCount,
    IPixGpuCaptureCounter *const * counters,
    REFIID riid,
    void ** counterData);

Parameters

counterCount [in]

The number of counters to collect.

counters [in]

A pointer to an array of IPixGpuCaptureCounter counter objects to collect, typically obtained from GetCounters or GetCounterGroups. Each object's GetId() identifies the counter to collect; any element that is null causes the call to fail with E_INVALIDARG.

riid [in]

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

counterData [out]

The pointer to the returned interface IPixGpuCaptureCounterData

Returns

S_OK if collecting counters was successful, otherwise an error code.

See also