contrib: d3d11: add dxgi 1.6 to read IDXGIOutput6
[vlc.git] / contrib / src / d3d11 / dxgi1_6.idl
blob5db720305e81035577ea2bd6a39549236a2b6307
1 /*
2 * Copyright 2017 Steve Lhomme
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_4.idl";
21 cpp_quote("/* HACK as widl segfaults with too many imports */")
22 cpp_quote("#include <dxgi1_5.h>")
23 cpp_quote("#ifndef __dxgi1_5_h__")
26 object,
27 local,
28 uuid(80A07424-AB52-42EB-833C-0C42FD282D98)
30 interface IDXGIOutput5 : IDXGIOutput4
32 HRESULT DuplicateOutput1(
33 [in] IUnknown *pDevice,
34 UINT Flags,
35 [in] UINT SupportedFormatsCount,
36 [in] const DXGI_FORMAT *pSupportedFormats,
37 [out] IDXGIOutputDuplication **ppOutputDuplication
41 cpp_quote("#endif /* __dxgi1_5_h__ */")
43 typedef struct DXGI_OUTPUT_DESC1
45 WCHAR DeviceName[32];
46 RECT DesktopCoordinates;
47 BOOL AttachedToDesktop;
48 DXGI_MODE_ROTATION Rotation;
49 HMONITOR Monitor;
50 UINT BitsPerColor;
51 DXGI_COLOR_SPACE_TYPE ColorSpace;
52 FLOAT RedPrimary[2];
53 FLOAT GreenPrimary[2];
54 FLOAT BluePrimary[2];
55 FLOAT WhitePoint[2];
56 FLOAT MinLuminance;
57 FLOAT MaxLuminance;
58 FLOAT MaxFullFrameLuminance;
59 BOOL InternalOutput;
60 } DXGI_OUTPUT_DESC1;
63 object,
64 local,
65 uuid(068346e8-aaec-4b84-add7-137f513f77a1)
67 interface IDXGIOutput6 : IDXGIOutput5
69 HRESULT GetDesc1(
70 [out] DXGI_OUTPUT_DESC1 *pDesc