File: dxcore.h

package info (click to toggle)
directx-headers 1.618.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,296 kB
  • sloc: ansic: 47,403; cpp: 13,185; makefile: 5
file content (41 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/************************************************************
*                                                           *
* Copyright (c) Microsoft Corporation.                      *
* Licensed under the MIT license.                           *
*                                                           *
************************************************************/

#ifndef _DXCOREEXTMODULE_H_
#define _DXCOREEXTMODULE_H_

#include <winapifamily.h>
#include "dxcore_interface.h"

#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)

#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)

STDAPI
DXCoreCreateAdapterFactory(
    REFIID riid,
    _COM_Outptr_ void** ppvFactory
);

template <class T>
HRESULT
DXCoreCreateAdapterFactory(
    _COM_Outptr_ T** ppvFactory
)
{
    return DXCoreCreateAdapterFactory(IID_PPV_ARGS(ppvFactory));
}

#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10)

#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion

#endif // _DXCOREEXTMODULE_H_