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
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,
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 struct DXGI_ADAPTER_DESC3
39 WCHAR Description
[128];
44 SIZE_T DedicatedVideoMemory
;
45 SIZE_T DedicatedSystemMemory
;
46 SIZE_T SharedSystemMemory
;
48 DXGI_ADAPTER_FLAG3 Flags
;
49 DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity
;
50 DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity
;
53 typedef struct DXGI_OUTPUT_DESC1
56 RECT DesktopCoordinates
;
57 BOOL AttachedToDesktop
;
58 DXGI_MODE_ROTATION Rotation
;
61 DXGI_COLOR_SPACE_TYPE ColorSpace
;
63 FLOAT GreenPrimary
[2];
68 FLOAT MaxFullFrameLuminance
;
73 uuid(3c8d99d1
-4fbf
-4181-a82c
-af66bf7bd24e
),
75 pointer_default(unique)
77 interface IDXGIAdapter4
: IDXGIAdapter3
80 [out] DXGI_ADAPTER_DESC3
*desc
86 uuid(068346e8
-aaec
-4b84
-add7
-137f513f77a1
),
88 pointer_default(unique)
90 interface IDXGIOutput6
: IDXGIOutput5
93 [out] DXGI_OUTPUT_DESC1
*desc
95 HRESULT CheckHardwareCompositionSupport
(