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
21 typedef enum DXGI_HDR_METADATA_TYPE
23 DXGI_HDR_METADATA_TYPE_NONE
= 0x00,
24 DXGI_HDR_METADATA_TYPE_HDR10
= 0x01,
25 } DXGI_HDR_METADATA_TYPE
;
27 typedef struct DXGI_HDR_METADATA_HDR10
30 UINT16 GreenPrimary
[2];
31 UINT16 BluePrimary
[2];
33 UINT MaxMasteringLuminance
;
34 UINT MinMasteringLuminance
;
35 UINT16 MaxContentLightLevel
;
36 UINT16 MaxFrameAverageLightLevel
;
37 } DXGI_HDR_METADATA_HDR10
;
42 uuid(3d585d5a
-bd4a
-489e
-b1f4
-3dbcb6452ffb
)
44 interface IDXGISwapChain4
: IDXGISwapChain3
46 HRESULT SetHDRMetaData
(
47 [in] DXGI_HDR_METADATA_TYPE Type
,
56 uuid(80A07424
-AB52
-42EB
-833C
-0C42FD282D98
)
58 interface IDXGIOutput5
: IDXGIOutput4
60 HRESULT DuplicateOutput1
(
61 [in] IUnknown
*pDevice
,
63 [in] UINT SupportedFormatsCount
,
64 [in] const DXGI_FORMAT
*pSupportedFormats
,
65 [out] IDXGIOutputDuplication
**ppOutputDuplication