DXCoreNotificationType 列舉 (dxcore_interface.h)

定義常數,指定 IDXCoreAdapterIDXCoreAdapterList 物件所引發的通知類型。

您可以分別呼叫 IDXCoreAdapterFactory::RegisterEventNotificationIDXCoreAdapterFactory::UnregisterEventNotification 來註冊和取消註冊這些通知。

Syntax

typedef enum DXCoreNotificationType {
  AdapterListStale = 0,
  AdapterNoLongerValid = 1,
  AdapterBudgetChange = 2,
  AdapterHardwareContentProtectionTeardown = 3
} ;

常數

 
AdapterListStale
值: 0
當配接器清單過期時, IDXCoreAdapterList 物件會引發此通知。 全新到過時的轉換是單向轉換,一次性,因此最多一次會引發此通知。
AdapterNoLongerValid
值: 1
當配接器不再有效時, IDXCoreAdapter 物件會引發此通知。 有效到無效的轉換是單向轉換,一次性,因此最多一次會引發此通知。
AdapterBudgetChange
值: 2
當配接器預算變更發生時, IDXCoreAdapter 物件會引發此通知。 此通知可能會發生多次。 使用此通知的功能類似於 IDXGIAdapter3::RegisterVideoMemoryBudgetChangeNotificationEvent。 為了回應此事件,您應該使用 DXCoreAdapterState::AdapterMemoryBudget) 呼叫 IDXCoreAdapter::QueryState (,以評估目前的記憶體預算狀態。
AdapterHardwareContentProtectionTeardown
值: 3
此通知是由 IDXCoreAdapter 物件所引發,以通知適配卡的硬體內容保護終止。 此通知可能會發生多次。 其功能類似於 IDXGIAdapter3::RegisterHardwareContentProtectionTeardownStatusEvent。 為了回應此事件,您應該重新評估目前的加密會話狀態;例如,藉由呼叫 ID3D11VideoContext1::CheckCryptoSessionStatus 來判斷特定 ID3D11CryptoSession 介面的硬體終止影響。

規格需求

需求
最低支援的用戶端 Windows 10 (組建 18936)
標頭 dxcore_interface.h (包含 dxcore.h)

另請參閱

IDXCoreAdapterFactory::RegisterEventNotificationIDXCoreAdapterFactory::UnregisterEventNotificationIDXCoreAdapter、IDXCoreAdapterListDXCore 參考使用 DXCore 列舉配接