DXCoreNotificationType 枚举 (dxcore_interface.h)

定义指定 IDXCoreAdapter 或 IDXCoreAdapterList 对象引发的通知类型的常量。

可以通过分别调用 IDXCoreAdapterFactory::RegisterEventNotificationIDXCoreAdapterFactory::UnregisterEventNotification 来注册和注销这些通知。

语法

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::UnregisterEventNotificationIDXCoreAdapterIDXCoreAdapterListDXCore 参考使用 DXCore 枚举适配器