Debian Codegraph @

third_party/DirectX-Headers/include/directx/dxcore.h

raw
1 /************************************************************
2 * *
3 * Copyright (c) Microsoft Corporation. *
4 * Licensed under the MIT license. *
5 * *
6 ************************************************************/
7
8 #ifndef _DXCOREEXTMODULE_H_
9 #define _DXCOREEXTMODULE_H_
10
11 #include <winapifamily.h>
12 #include "dxcore_interface.h"
13
14 #pragma region Application Family or OneCore Family
15 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
16
17 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
18
19 STDAPI
20 DXCoreCreateAdapterFactory(
21 REFIID riid,
22 _COM_Outptr_ void** ppvFactory
23 );
24
25 template <class T>
26 HRESULT
27 DXCoreCreateAdapterFactory(
28 _COM_Outptr_ T** ppvFactory
29 )
30 {
31 return DXCoreCreateAdapterFactory(IID_PPV_ARGS(ppvFactory));
32 }
33
34 #endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
35
36 #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
37 #pragma endregion
38
39 #endif // _DXCOREEXTMODULE_H_
40
41