IPixConnectionDocument::TakeGpuCapture method

Take a GPU Capture.

Syntax

HRESULT TakeGpuCapture(
    const PIX_GPU_CAPTURE_DESC * gpuCaptureDescription,
    IPixAsyncOperation ** asyncOperation);

Parameters

gpuCaptureDescription [in]

GPU capture parameters.

asyncOperation [out]

Optional. Receives an IPixAsyncOperation with a result of type IPixGpuCaptureResult.

Returns

S_OK on success, otherwise an error code.

Remarks

The result can be obtained through the IPixAsyncOperation parameter (call GetResult to wait for completion) or by handling IPixConnectionNotifications::NewGpuCaptureCompleted.

See also