diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-05-30 12:22:38 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-05-31 20:14:52 +0200 |
commit | 8c35fe3b95a54fc954abe883037903664a1aefb7 (patch) | |
tree | 2093c996e82bed1b00fae52e4055c96726f23e73 /src/quick/scenegraph/qsgthreadedrenderloop.cpp | |
parent | 80f66d133703469c2c7e160dd621a312493ff681 (diff) |
Sanitize QSG_RHI_HDR handling
Add an 'auto' mode which just means use some HDR
format if supported, use SDR otherwise. This format will be
scRGB, but that's not exposed in the API. This is more realistic
for a typical application (think a video player f.ex.).
Then expose this as a usual QQuickGraphicsConfiguration flag, but
mark the flag API as \internal for now, because the full story
for HDR support in Qt Quick is not quite clear. However, some
applications, that know what they are doing, may want to take
this into use already.
Change-Id: I3fc79246528cc89cf27d13bb016189d509498225
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgthreadedrenderloop.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index 5b5afe0872..f9e9de140f 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -909,7 +909,7 @@ void QSGRenderThread::ensureRhi() } cd->swapchain->setWindow(window); cd->swapchain->setProxyData(scProxyData); - QSGRhiSupport::instance()->applySwapChainFormat(cd->swapchain); + QSGRhiSupport::instance()->applySwapChainFormat(cd->swapchain, window); qCDebug(QSG_LOG_INFO, "MSAA sample count for the swapchain is %d. Alpha channel requested = %s.", rhiSampleCount, alpha ? "yes" : "no"); cd->swapchain->setSampleCount(rhiSampleCount); |