Skip to content

D3D12HDR::EnsureSwapChainColorSpace gamma documentation #924

@dorian-apanel-intel

Description

@dorian-apanel-intel

colorSpace = DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709;

Comment mentions Gamma 2.2 in FP16:

// DirectX supports two combinations of swapchain pixel formats and colorspaces for HDR content.
// Option 1: FP16 + DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
// Option 2: R10G10B10A2 + DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020

Code sets Gamma 1.0 in FP16:

    case _16:
        colorSpace = DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709;
        m_rootConstants[DisplayCurve] = None;
        break;

Is it correct?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions