IPixGpuCaptureAnalysis::GetBufferBytesFromResource method

Read the raw bytes of a captured D3D12 buffer resource at a specific GPU event.

Syntax

HRESULT GetBufferBytesFromResource(
    IPixD3D12Resource * resource,
    const PIX_EVENT_INFO * eventInfo,
    const PIX_GET_BUFFER_BYTES_PARAMETERS * getBufferBytesParameters,
    REFIID riid,
    void ** outputBytes);

Parameters

resource [in]

A D3D12 buffer resource owned by this analysis instance.

eventInfo [in]

The GPU event identifying the point in the capture's timeline to read the bytes at.

getBufferBytesParameters [in]

Optional read parameters. When null, reads after the event without resetting playback first.

riid [in]

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

outputBytes [out]

Receives a newly created IPixBlob containing the complete buffer and hands to the caller.

Returns

S_OK on success. E_POINTER if resource or eventInfo is null. E_NOINTERFACE when riid is not IID_IPixBlob. E_INVALIDARG for an unsupported or foreign resource, an unknown event, an event without a parent command list, or a resource that cannot be resolved at the requested playback point. E_PIX_ANALYSIS_NOT_RUNNING if analysis is not running.

Remarks

Warning

resource must be a PIX-created resource for this analysis instance; passing a non-PIX resource returns E_INVALIDARG.

See also