From 0b7b02cdb43a4d9a29eba5804b82461bed70a86c Mon Sep 17 00:00:00 2001 From: Kristoffer Skau Date: Thu, 20 Jun 2024 10:58:31 +0200 Subject: [PATCH] Add additional shader variant for HDR support Both qsb and the batch renderer will generate and use the rewritten shader for this new variant respectively. Task-number: QTBUG-126035 Change-Id: I5c4078afcfb22de1e82485459c58d2211958ab7b Reviewed-by: Laszlo Agocs --- src/gui/rhi/qshader.cpp | 3 +++ src/gui/rhi/qshader.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/rhi/qshader.cpp b/src/gui/rhi/qshader.cpp index 9bb8c294ea5..b0cba77af99 100644 --- a/src/gui/rhi/qshader.cpp +++ b/src/gui/rhi/qshader.cpp @@ -215,6 +215,9 @@ QT_BEGIN_NAMESPACE translated to a compute shader that may be dependent on the index buffer usage in the draw calls (e.g. if the shader is using gl_VertexIndex), hence the need for three dedicated variants. + + \value [since 6.10] HdrCapableFragmentShader A fragment shader rewritten to support high + dynamic range rendering in a Qt Quick scenegraph. */ /*! diff --git a/src/gui/rhi/qshader.h b/src/gui/rhi/qshader.h index d6341678ac8..5ae968bd517 100644 --- a/src/gui/rhi/qshader.h +++ b/src/gui/rhi/qshader.h @@ -105,7 +105,8 @@ public: BatchableVertexShader, UInt16IndexedVertexAsComputeShader, UInt32IndexedVertexAsComputeShader, - NonIndexedVertexAsComputeShader + NonIndexedVertexAsComputeShader, + HdrCapableFragmentShader, }; enum class SerializedFormatVersion {