D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA structure (d3dukmdt.h)

D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA is used with pfnGetResourcePresentPrivateDriverDataCb to query the resource private data, which is associated with the resource during Present.

Syntax

typedef struct _D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA {
  [in]      D3DKMT_HANDLE hResource;
  [in, out] UINT          PrivateDriverDataSize;
  [in, out] PVOID         pPrivateDriverData;
} D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA;

Members

[in] hResource

A DirectX graphics kernel resource handle.

[in, PrivateDriverDataSize

The size of the pPrivateDriverData buffer in bytes. When zero or when there is insufficient space, the size of the required buffer is returned back to the caller along with a STATUS_INVALID_BUFFER_SIZEHRESULT value from the calling method.

Note  By the time another call is made with the new buffer size, the resource could be associated with a different sized buffer.
 

[in, pPrivateDriverData

The buffer where the private data will be written to.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header d3dukmdt.h (include D3dumddi.h, D3dkmddi.h)

See also

pfnGetResourcePresentPrivateDriverDataCb