summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristoffer Skau <[email protected]>2024-06-20 10:58:31 +0200
committerLaszlo Agocs <[email protected]>2025-02-04 17:34:21 +0000
commit0b7b02cdb43a4d9a29eba5804b82461bed70a86c (patch)
tree54c4ea1dfb9e562072c7bb92f00a686c2522221b
parentacb8252d0abf5cf0c7166312f180d5d325f6ccd6 (diff)
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 <[email protected]>
-rw-r--r--src/gui/rhi/qshader.cpp3
-rw-r--r--src/gui/rhi/qshader.h3
2 files changed, 5 insertions, 1 deletions
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 {