Skip to content

Commit

Permalink
Merge pull request #670 from microsoft/develop
Browse files Browse the repository at this point in the history
Bring HDR chromaticity naming fix to master
  • Loading branch information
sebmerry authored Nov 6, 2020
2 parents 69c728e + ab453c0 commit b8334cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Samples/Desktop/D3D12HDR/src/D3D12HDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ void D3D12HDR::SetHDRMetaData(float MaxOutputNits /*=1000.0f*/, float MinOutputN
return;
}

static const DisplayChromacities DisplayChromacityList[] =
static const DisplayChromaticities DisplayChromaticityList[] =
{
{ 0.64000f, 0.33000f, 0.30000f, 0.60000f, 0.15000f, 0.06000f, 0.31270f, 0.32900f }, // Display Gamut Rec709
{ 0.70800f, 0.29200f, 0.17000f, 0.79700f, 0.13100f, 0.04600f, 0.31270f, 0.32900f }, // Display Gamut Rec2020
Expand All @@ -977,7 +977,7 @@ void D3D12HDR::SetHDRMetaData(float MaxOutputNits /*=1000.0f*/, float MinOutputN
}

// Set HDR meta data
const DisplayChromacities& Chroma = DisplayChromacityList[selectedChroma];
const DisplayChromaticities& Chroma = DisplayChromaticityList[selectedChroma];
DXGI_HDR_METADATA_HDR10 HDR10MetaData = {};
HDR10MetaData.RedPrimary[0] = static_cast<UINT16>(Chroma.RedX * 50000.0f);
HDR10MetaData.RedPrimary[1] = static_cast<UINT16>(Chroma.RedY * 50000.0f);
Expand Down
2 changes: 1 addition & 1 deletion Samples/Desktop/D3D12HDR/src/D3D12HDR.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class D3D12HDR : public DXSample
XMFLOAT2 uv;
};

struct DisplayChromacities
struct DisplayChromaticities
{
float RedX;
float RedY;
Expand Down
4 changes: 2 additions & 2 deletions Samples/UWP/D3D12HDR/src/D3D12HDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ void D3D12HDR::SetHDRMetaData(float MaxOutputNits /*=1000.0f*/, float MinOutputN
return;
}

static const DisplayChromacities DisplayChromacityList[] =
static const DisplayChromaticities DisplayChromaticityList[] =
{
{ 0.64000f, 0.33000f, 0.30000f, 0.60000f, 0.15000f, 0.06000f, 0.31270f, 0.32900f }, // Display Gamut Rec709
{ 0.70800f, 0.29200f, 0.17000f, 0.79700f, 0.13100f, 0.04600f, 0.31270f, 0.32900f }, // Display Gamut Rec2020
Expand All @@ -947,7 +947,7 @@ void D3D12HDR::SetHDRMetaData(float MaxOutputNits /*=1000.0f*/, float MinOutputN
}

// Set HDR meta data
const DisplayChromacities& Chroma = DisplayChromacityList[selectedChroma];
const DisplayChromaticities& Chroma = DisplayChromaticityList[selectedChroma];
DXGI_HDR_METADATA_HDR10 HDR10MetaData = {};
HDR10MetaData.RedPrimary[0] = static_cast<UINT16>(Chroma.RedX * 50000.0f);
HDR10MetaData.RedPrimary[1] = static_cast<UINT16>(Chroma.RedY * 50000.0f);
Expand Down
2 changes: 1 addition & 1 deletion Samples/UWP/D3D12HDR/src/D3D12HDR.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class D3D12HDR : public DXSample
XMFLOAT2 uv;
};

struct DisplayChromacities
struct DisplayChromaticities
{
float RedX;
float RedY;
Expand Down

0 comments on commit b8334cc

Please sign in to comment.