crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans().
[wine.git] / include / dxgi1_6.idl
blobe24dd4b367a732022f9adbaa5cbb55e7ab986677
1 /*
2 * Copyright 2017 Ihsan Akmal
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.
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.
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
19 import "dxgi1_5.idl";
21 typedef enum DXGI_ADAPTER_FLAG3
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_FORCE_DWORD = 0xffffffff,
28 } DXGI_ADAPTER_FLAG3;
30 typedef enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS
32 DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_FULLSCREEN = 0x1,
33 DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_WINDOWED = 0x2,
34 DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED = 0x4,
35 } DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS;
37 typedef enum DXGI_GPU_PREFERENCE
39 DXGI_GPU_PREFERENCE_UNSPECIFIED = 0x0,
40 DXGI_GPU_PREFERENCE_MINIMUM_POWER = 0x1,
41 DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE = 0x2,
42 } DXGI_GPU_PREFERENCE;
44 typedef struct DXGI_ADAPTER_DESC3
46 WCHAR Description[128];
47 UINT VendorId;
48 UINT DeviceId;
49 UINT SubSysId;
50 UINT Revision;
51 SIZE_T DedicatedVideoMemory;
52 SIZE_T DedicatedSystemMemory;
53 SIZE_T SharedSystemMemory;
54 LUID AdapterLuid;
55 DXGI_ADAPTER_FLAG3 Flags;
56 DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;
57 DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;
58 } DXGI_ADAPTER_DESC3;
60 typedef struct DXGI_OUTPUT_DESC1
62 WCHAR DeviceName[32];
63 RECT DesktopCoordinates;
64 BOOL AttachedToDesktop;
65 DXGI_MODE_ROTATION Rotation;
66 HMONITOR Monitor;
67 UINT BitsPerColor;
68 DXGI_COLOR_SPACE_TYPE ColorSpace;
69 FLOAT RedPrimary[2];
70 FLOAT GreenPrimary[2];
71 FLOAT BluePrimary[2];
72 FLOAT WhitePoint[2];
73 FLOAT MinLuminance;
74 FLOAT MaxLuminance;
75 FLOAT MaxFullFrameLuminance;
76 } DXGI_OUTPUT_DESC1;
79 object,
80 uuid(3c8d99d1-4fbf-4181-a82c-af66bf7bd24e),
81 local,
82 pointer_default(unique)
84 interface IDXGIAdapter4 : IDXGIAdapter3
86 HRESULT GetDesc3(
87 [out] DXGI_ADAPTER_DESC3 *desc
92 object,
93 uuid(068346e8-aaec-4b84-add7-137f513f77a1),
94 local,
95 pointer_default(unique)
97 interface IDXGIOutput6 : IDXGIOutput5
99 HRESULT GetDesc1(
100 [out] DXGI_OUTPUT_DESC1 *desc
102 HRESULT CheckHardwareCompositionSupport(
103 [out] UINT *flags
108 object,
109 uuid(c1b6694f-ff09-44a9-b03c-77900a0a1d17),
110 local,
111 pointer_default(unique)
113 interface IDXGIFactory6 : IDXGIFactory5
115 HRESULT EnumAdapterByGpuPreference(
116 [in] UINT adapter_idx,
117 [in] DXGI_GPU_PREFERENCE gpu_preference,
118 [in] REFIID iid,
119 [out] void **adapter
124 object,
125 uuid(a4966eed-76db-44da-84c1-ee9a7afb20a8),
126 local,
127 pointer_default(unique)
129 interface IDXGIFactory7 : IDXGIFactory6
131 HRESULT RegisterAdaptersChangedEvent(
132 [in] HANDLE event,
133 [out] DWORD *cookie
135 HRESULT UnregisterAdaptersChangedEvent(
136 [in] DWORD cookie