source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/dxgi1_6.idl@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 3.7 KB
RevLine 
[1166]1/*
2 * Copyright 2017 Ihsan Akmal
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19import "dxgi1_5.idl";
20
21typedef enum DXGI_ADAPTER_FLAG3
22{
23 DXGI_ADAPTER_FLAG3_NONE = 0x0,
24 DXGI_ADAPTER_FLAG3_REMOTE = 0x1,
25 DXGI_ADAPTER_FLAG3_SOFTWARE = 0x2,
26 DXGI_ADAPTER_FLAG3_ACG_COMPATIBLE = 0x4,
27 DXGI_ADAPTER_FLAG3_SUPPORT_MONITORED_FENCES = 0x8,
28 DXGI_ADAPTER_FLAG3_SUPPORT_NON_MONITORED_FENCES = 0x10,
29 DXGI_ADAPTER_FLAG3_KEYED_MUTEX_CONFORMANCE = 0x20,
30 DXGI_ADAPTER_FLAG3_FORCE_DWORD = 0xffffffff,
31} DXGI_ADAPTER_FLAG3;
32
33typedef enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS
34{
35 DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_FULLSCREEN = 0x1,
36 DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_WINDOWED = 0x2,
37 DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED = 0x4,
38} DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS;
39
40typedef enum DXGI_GPU_PREFERENCE
41{
42 DXGI_GPU_PREFERENCE_UNSPECIFIED = 0x0,
43 DXGI_GPU_PREFERENCE_MINIMUM_POWER = 0x1,
44 DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE = 0x2,
45} DXGI_GPU_PREFERENCE;
46
47typedef struct DXGI_ADAPTER_DESC3
48{
49 WCHAR Description[128];
50 UINT VendorId;
51 UINT DeviceId;
52 UINT SubSysId;
53 UINT Revision;
54 SIZE_T DedicatedVideoMemory;
55 SIZE_T DedicatedSystemMemory;
56 SIZE_T SharedSystemMemory;
57 LUID AdapterLuid;
58 DXGI_ADAPTER_FLAG3 Flags;
59 DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;
60 DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;
61} DXGI_ADAPTER_DESC3;
62
63typedef struct DXGI_OUTPUT_DESC1
64{
65 WCHAR DeviceName[32];
66 RECT DesktopCoordinates;
67 BOOL AttachedToDesktop;
68 DXGI_MODE_ROTATION Rotation;
69 HMONITOR Monitor;
70 UINT BitsPerColor;
71 DXGI_COLOR_SPACE_TYPE ColorSpace;
72 FLOAT RedPrimary[2];
73 FLOAT GreenPrimary[2];
74 FLOAT BluePrimary[2];
75 FLOAT WhitePoint[2];
76 FLOAT MinLuminance;
77 FLOAT MaxLuminance;
78 FLOAT MaxFullFrameLuminance;
79} DXGI_OUTPUT_DESC1;
80
81[
82 object,
83 uuid(3c8d99d1-4fbf-4181-a82c-af66bf7bd24e),
84 local,
85 pointer_default(unique)
86]
87interface IDXGIAdapter4 : IDXGIAdapter3
88{
89 HRESULT GetDesc3(
90 [out] DXGI_ADAPTER_DESC3 *desc
91 );
92}
93
94[
95 object,
96 uuid(068346e8-aaec-4b84-add7-137f513f77a1),
97 local,
98 pointer_default(unique)
99]
100interface IDXGIOutput6 : IDXGIOutput5
101{
102 HRESULT GetDesc1(
103 [out] DXGI_OUTPUT_DESC1 *desc
104 );
105 HRESULT CheckHardwareCompositionSupport(
106 [out] UINT *flags
107 );
108}
109
110[
111 object,
112 uuid(c1b6694f-ff09-44a9-b03c-77900a0a1d17),
113 local,
114 pointer_default(unique)
115]
116interface IDXGIFactory6 : IDXGIFactory5
117{
118 HRESULT EnumAdapterByGpuPreference(
119 [in] UINT adapter_idx,
120 [in] DXGI_GPU_PREFERENCE gpu_preference,
121 [in] REFIID iid,
122 [out] void **adapter
123 );
124}
125
126[
127 object,
128 uuid(a4966eed-76db-44da-84c1-ee9a7afb20a8),
129 local,
130 pointer_default(unique)
131]
132interface IDXGIFactory7 : IDXGIFactory6
133{
134 HRESULT RegisterAdaptersChangedEvent(
135 [in] HANDLE event,
136 [out] DWORD *cookie
137 );
138 HRESULT UnregisterAdaptersChangedEvent(
139 [in] DWORD cookie
140 );
141}
Note: See TracBrowser for help on using the repository browser.