Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Windows 10 Redstone comes with WDDM 2.1 with HDR support:
- //
- // WDDM DDI Interface Version
- //
- #define DXGKDDI_INTERFACE_VERSION_WDDM2_1 0x6000
- #define IS_OFFICIAL_DDI_INTERFACE_VERSION(version) \
- (((version) == DXGKDDI_INTERFACE_VERSION_VISTA) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_VISTA_SP1) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_WIN7) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_WIN8) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_WDDM1_3) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_WDDM1_3_PATH_INDEPENDENT_ROTATION) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_WDDM2_0) || \
- ((version) == DXGKDDI_INTERFACE_VERSION_WDDM2_1) \
- )
- #if !defined(DXGKDDI_INTERFACE_VERSION)
- #define DXGKDDI_INTERFACE_VERSION DXGKDDI_INTERFACE_VERSION_WDDM2_1
- #endif // !defined(DXGKDDI_INTERFACE_VERSION)
- #define D3D_UMD_INTERFACE_VERSION_WDDM2_0 0x5002
- #define D3D_UMD_INTERFACE_VERSION_WDDM2_1_1 0x6000
- #define D3D_UMD_INTERFACE_VERSION_WDDM2_1 D3D_UMD_INTERFACE_VERSION_WDDM2_1_1
- #if !defined(D3D_UMD_INTERFACE_VERSION)
- #define D3D_UMD_INTERFACE_VERSION D3D_UMD_INTERFACE_VERSION_WDDM2_1
- #endif // !defined(D3D_UMD_INTERFACE_VERSION)
- #if (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM2_1)
- typedef enum _D3DDDI_HDR_METADATA_TYPE
- {
- D3DDDI_HDR_METADATA_TYPE_NONE = 0,
- D3DDDI_HDR_METADATA_TYPE_HDR10 = 1,
- } D3DDDI_HDR_METADATA_TYPE;
- typedef struct _D3DDDI_HDR_METADATA_HDR10
- {
- // Color gamut
- UINT16 RedPrimary[2];
- UINT16 GreenPrimary[2];
- UINT16 BluePrimary[2];
- UINT16 WhitePoint[2];
- // Luminance
- UINT MaxMasteringLuminance;
- UINT MinMasteringLuminance;
- UINT16 MaxContentLightLevel;
- UINT16 MaxFrameAverageLightLevel;
- } D3DDDI_HDR_METADATA_HDR10;
- #endif // (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM2_1)
- #if ((DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM2_1) || \
- (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1))
- typedef struct D3DDDI_UPDATEALLOCPROPERTY_FLAGS
- {
- union
- {
- struct
- {
- UINT AccessedPhysically : 1; // The new value for AccessedPhysically on an allocation
- UINT Reserved : 31;
- };
- UINT Value;
- };
- } D3DDDI_UPDATEALLOCPROPERTY_FLAGS;
- typedef struct D3DDDI_UPDATEALLOCPROPERTY
- {
- D3DKMT_HANDLE hPagingQueue; // [in] Handle to the paging queue used to synchronize paging operations for this call.
- D3DKMT_HANDLE hAllocation; // [in] Handle to the allocation to be updated.
- UINT SupportedSegmentSet; // [in] New supported segment set, ignored if the same.
- D3DDDI_SEGMENTPREFERENCE PreferredSegment; // [in] New preferred segment set, ignored if the same.
- D3DDDI_UPDATEALLOCPROPERTY_FLAGS Flags; // [in] Flags to set on the allocation, ignored if the same.
- UINT64 PagingFenceValue; // [out] Paging fence value to synchronize on before using the above allocation.
- // This value applies to the monitored fence synchronization
- // object associated with hPagingQueue.
- union
- {
- struct
- {
- UINT SetAccessedPhysically : 1; // [in] When set to 1, will set AccessedPhysically to new value
- UINT SetSupportedSegmentSet : 1; // [in] When set to 1, will set SupportedSegmentSet to new value
- UINT SetPreferredSegment : 1; // [in] When set to 1, will set PreferredSegment to new value
- UINT Reserved : 29;
- };
- UINT PropertyMaskValue;
- };
- } D3DDDI_UPDATEALLOCPROPERTY;
- #endif // (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WDDM2_1)
- #if(D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1)
- typedef struct D3DDDI_OFFER_FLAGS
- {
- union
- {
- struct
- {
- UINT AllowDecommit : 1;
- UINT Reserved : 31;
- };
- UINT Value;
- };
- } D3DDDI_OFFER_FLAGS;
- #endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement