PFN_DXCORE_NOTIFICATION_CALLBACK回调函数 (dxcore_interface.h)

回调函数 (应用程序) 实现,该回调函数由 DXCore 对象为通知事件调用。

语法

PFN_DXCORE_NOTIFICATION_CALLBACK PfnDxcoreNotificationCallback;

void PfnDxcoreNotificationCallback(
       DXCoreNotificationType notificationType,
       IUnknown *object,
  [in] void *context
)
{...}

参数

notificationType

类型: DXCoreNotificationType

表示此调用的通知类型。 有关哪些类型对哪些类型的对象有效的信息,请参阅 DXCoreNotificationType 中的表。

object

类型: IUnknown*

引发通知的 IDXCoreAdapterIDXCoreAdapterList 对象。

[in] context

类型: void*

指向包含上下文信息的 对象的指针,可以是 nullptr

返回值

要求

   
最低受支持的客户端 Windows 10 (内部版本 18936)
目标平台 Windows
标头 dxcore_interface.h (包括 dxcore.h)
Library dxcore.lib
DLL dxcore.dll

请参阅

IDXCoreAdapterIDXCoreAdapterListDXCore 参考使用 DXCore 枚举适配器