Expand Minimize

D3DKMT_QUERYRESOURCEINFO structure

The D3DKMT_QUERYRESOURCEINFO structure describes parameters for retrieving information about a resource.

Syntax


typedef struct _D3DKMT_QUERYRESOURCEINFO {
  D3DKMT_HANDLE hDevice;
  D3DKMT_HANDLE hGlobalShare;
  VOID          *pPrivateRuntimeData;
  UINT          PrivateRuntimeDataSize;
  UINT          TotalPrivateDriverDataSize;
  UINT          ResourcePrivateDriverDataSize;
  UINT          NumAllocations;
} D3DKMT_QUERYRESOURCEINFO;

Members

hDevice

[in] A handle to the device that the resource and allocations are associated with.

hGlobalShare

[in] A handle to the shared resource to open.

pPrivateRuntimeData

[in] If non-NULL, a pointer to a buffer that receives the runtime-private data that is supplied at create time. The OpenGL ICD should first call the D3DKMTQueryResourceInfo function with pPrivateRuntimeData set to NULL to obtain the buffer size and then call again with the correct size buffer.

PrivateRuntimeDataSize

[in/out] The size, in bytes, of the buffer that pPrivateRuntimeData points to. If pPrivateRuntimeData is NULL, PrivateRuntimeDataSize is set to the size, in bytes, that is required for the buffer to store the runtime-private data.

TotalPrivateDriverDataSize

[out] The size, in bytes, of the buffer that is required to hold the private driver data for all of the allocations that are associated with the resource.

ResourcePrivateDriverDataSize

[out] The size, in bytes, of the buffer that is required to hold the private driver data for the resource.

NumAllocations

[out] The number of allocations that are associated with the resource.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmthk.h (include D3dkmthk.h)

See also

D3DKMTOpenResource
D3DKMTQueryResourceInfo

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft