Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Resolve a compute root descriptor at the specified index to the corresponding D3D12 resource.
Syntax
HRESULT ResolveComputeRootDescriptorToResource(
PIX_SHADER_STAGE shaderStage,
UINT32 rootParameterIndex,
UINT64 * pOffset,
REFIID riid,
void ** ppResource);
Parameters
shaderStage [in]
No description provided.
rootParameterIndex [in]
No description provided.
pOffset [out]
Offset from start of the buffer.
riid [in]
The interface IID of the resource to be returned. Expected: IPixD3D12Resource (IPixPostmortemD3D12Resource for dxdmp files).
ppResource [out]
Pointer to the returned interface.
Returns
Failure if (1) The current event isn't a draw/dispatch/dispatchRays etc. (2) The root parameter index is out of bounds. (3) The root signature is not bound. (4) Retrieving root parameters or resources is not supported (eg. GPU driver doesn't support recording the info in the dxdmp file scenario). (5) The root parameter at the specified index is not a root descriptor. (6) The given shader stage doesn't use the root descriptor.
Remarks
All GPU work up to the event corresponding to the current D3D state is guaranteed to be flushed and finished so that the results of this function is valid and reflects the current state.