RetroArch
d3d10misc.h
Go to the documentation of this file.
1 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // File: D3D10Misc.h
6 // Content: D3D10 Device Creation APIs
7 //
9 
10 #ifndef __D3D10MISC_H__
11 #define __D3D10MISC_H__
12 
13 #include "d3d10.h"
14 
15 // ID3D10Blob has been made version-neutral and moved to d3dcommon.h.
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif //__cplusplus
20 
21 /*#include <winapifamily.h>*/
22 
23 /*#pragma region Desktop Family*/
24 /*#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)*/
25 
27 // D3D10_DRIVER_TYPE
28 // ----------------
29 //
30 // This identifier is used to determine the implementation of Direct3D10
31 // to be used.
32 //
33 // Pass one of these values to D3D10CreateDevice
34 //
36 typedef enum D3D10_DRIVER_TYPE
37 {
44 
45 DEFINE_GUID(GUID_DeviceType,
46 0xd722fb4d, 0x7a68, 0x437a, 0xb2, 0x0c, 0x58, 0x04, 0xee, 0x24, 0x94, 0xa6);
47 
49 // D3D10CreateDevice
50 // ------------------
51 //
52 // pAdapter
53 // If NULL, D3D10CreateDevice will choose the primary adapter and
54 // create a new instance from a temporarily created IDXGIFactory.
55 // If non-NULL, D3D10CreateDevice will register the appropriate
56 // device, if necessary (via IDXGIAdapter::RegisterDrver), before
57 // creating the device.
58 // DriverType
59 // Specifies the driver type to be created: hardware, reference or
60 // null.
61 // Software
62 // HMODULE of a DLL implementing a software rasterizer. Must be NULL for
63 // non-Software driver types.
64 // Flags
65 // Any of those documented for D3D10CreateDevice.
66 // SDKVersion
67 // SDK version. Use the D3D10_SDK_VERSION macro.
68 // ppDevice
69 // Pointer to returned interface.
70 //
71 // Return Values
72 // Any of those documented for
73 // CreateDXGIFactory
74 // IDXGIFactory::EnumAdapters
75 // IDXGIAdapter::RegisterDriver
76 // D3D10CreateDevice
77 //
80  _In_opt_ IDXGIAdapter *pAdapter,
81  D3D10_DRIVER_TYPE DriverType,
82  HMODULE Software,
83  UINT Flags,
85  _Out_opt_ ID3D10Device **ppDevice);
86 
88 // D3D10CreateDeviceAndSwapChain
89 // ------------------------------
90 //
91 // ppAdapter
92 // If NULL, D3D10CreateDevice will choose the primary adapter and
93 // create a new instance from a temporarily created IDXGIFactory.
94 // If non-NULL, D3D10CreateDevice will register the appropriate
95 // device, if necessary (via IDXGIAdapter::RegisterDrver), before
96 // creating the device.
97 // DriverType
98 // Specifies the driver type to be created: hardware, reference or
99 // null.
100 // Software
101 // HMODULE of a DLL implementing a software rasterizer. Must be NULL for
102 // non-Software driver types.
103 // Flags
104 // Any of those documented for D3D10CreateDevice.
105 // SDKVersion
106 // SDK version. Use the D3D10_SDK_VERSION macro.
107 // pSwapChainDesc
108 // Swap chain description, may be NULL.
109 // ppSwapChain
110 // Pointer to returned interface. May be NULL.
111 // ppDevice
112 // Pointer to returned interface.
113 //
114 // Return Values
115 // Any of those documented for
116 // CreateDXGIFactory
117 // IDXGIFactory::EnumAdapters
118 // IDXGIAdapter::RegisterDriver
119 // D3D10CreateDevice
120 // IDXGIFactory::CreateSwapChain
121 //
124  _In_opt_ IDXGIAdapter *pAdapter,
125  D3D10_DRIVER_TYPE DriverType,
126  HMODULE Software,
127  UINT Flags,
129  _In_opt_ DXGI_SWAP_CHAIN_DESC *pSwapChainDesc,
130  _Out_opt_ IDXGISwapChain **ppSwapChain,
131  _Out_opt_ ID3D10Device **ppDevice);
132 
133 
135 // D3D10CreateBlob:
136 // -----------------
137 // Creates a Buffer of n Bytes
139 
140 HRESULT WINAPI D3D10CreateBlob(SIZE_T NumBytes, _Out_ LPD3D10BLOB *ppBuffer);
141 
142 /*#endif*/ /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
143 /*#pragma endregion*/
144 
145 #ifdef __cplusplus
146 }
147 #endif //__cplusplus
148 
149 #endif //__D3D10EFFECT_H__
150 
151 
Definition: d3d10misc.h:40
Definition: d3d10misc.h:39
Definition: d3d10misc.h:42
Definition: d3d10misc.h:38
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
Definition: dxgi.h:285
DEFINE_GUID(GUID_DeviceType, 0xd722fb4d, 0x7a68, 0x437a, 0xb2, 0x0c, 0x58, 0x04, 0xee, 0x24, 0x94, 0xa6)
D3D10_DRIVER_TYPE
Definition: d3d10misc.h:36
interface IDXGISwapChain IDXGISwapChain
Definition: dxgi.h:100
interface ID3D10Device ID3D10Device
Definition: d3d10.h:203
static UINT SDKVersion
Definition: d3d8_common.c:42
Definition: glslang_tab.cpp:136
interface IDXGIAdapter IDXGIAdapter
Definition: dxgi.h:86
interface ID3D10Blob * LPD3D10BLOB
Definition: d3dcommon.h:410
HRESULT WINAPI D3D10CreateDeviceAndSwapChain(_In_opt_ IDXGIAdapter *pAdapter, D3D10_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags, UINT SDKVersion, _In_opt_ DXGI_SWAP_CHAIN_DESC *pSwapChainDesc, _Out_opt_ IDXGISwapChain **ppSwapChain, _Out_opt_ ID3D10Device **ppDevice)
HRESULT WINAPI D3D10CreateDevice(_In_opt_ IDXGIAdapter *pAdapter, D3D10_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags, UINT SDKVersion, _Out_opt_ ID3D10Device **ppDevice)
Definition: d3d10misc.h:41
HRESULT WINAPI D3D10CreateBlob(SIZE_T NumBytes, _Out_ LPD3D10BLOB *ppBuffer)