IDXGIAdapter3::RegisterVideoMemoryBudgetChangeNotificationEvent method

This method establishes a correlation between a CPU synchronization object and the budget change event.

Syntax


HRESULT RegisterVideoMemoryBudgetChangeNotificationEvent(
  [in]  HANDLE hEvent,
  [out] DWORD  *pdwCookie
);

Parameters

hEvent [in]

Type: HANDLE

Specifies a HANDLE for the event.

pdwCookie [out]

Type: DWORD*

A key value for the window or event to unregister. The IDXGIAdapter3::RegisterHardwareContentProtectionTeardownStatusEvent method returns this value.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Remarks

Instead of calling QueryVideoMemoryInfo regularly, applications can use CPU synchronization objects to efficiently wake threads when budget changes occur.

Requirements

Header

DXGI1_3.h

Library

Dxgi.lib

DLL

Dxgi.dll

See also

IDXGIAdapter3

 

 

Show: