diff options
author | Lars Knoll <lars.knoll@qt.io> | 2022-03-30 09:47:06 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2022-04-11 19:23:53 +0200 |
commit | ed5f33a3f19005eacc18d5dcd6379721d5f67f6b (patch) | |
tree | 7b48b2aab1461ff536d34c9cf524ee8e2acb850c /src/gui/rhi/qrhimetal_p_p.h | |
parent | c253e6542989ab1ecdd123960c3a69b1b0fe9351 (diff) |
Add support for the HDRExtendedSrgbLinear color space on Metal
Request 16 bit floating point backbuffers and set the color space
of the CAMetalLayer to kCGColorSpaceExtendedLinearSRGB if we set
up the swap chain to use extended SRGB.
Unfortunately the required CAMetalLayer.wantsExtendedDynamicRangeContent
property is not yet available on iOS, so for now this is a macOS
only feature.
Change-Id: I28ab12cc0b829eded721061da2679be8e31d6b9d
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhimetal_p_p.h')
-rw-r--r-- | src/gui/rhi/qrhimetal_p_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhimetal_p_p.h b/src/gui/rhi/qrhimetal_p_p.h index cbb6e537b5..6ebddd20f5 100644 --- a/src/gui/rhi/qrhimetal_p_p.h +++ b/src/gui/rhi/qrhimetal_p_p.h @@ -330,6 +330,8 @@ struct QMetalSwapChain : public QRhiSwapChain bool createOrResize() override; + virtual QRhiSwapChainHdrInfo hdrInfo() override; + void chooseFormats(); QWindow *window = nullptr; |