aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2024-03-04 15:02:10 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-05 13:06:34 +0000
commit58991fa2a3bde4eef8a448619da174fc3ff7ce60 (patch)
treeae867a3ffb9b25dd5c3df927c911a59b48f3d755
parent8b72fa5b1298d10baac55919d4504e8d686c4d87 (diff)
Use scoped enum for format in rhitextureitem example
Change-Id: I2add2eb838cf7087902fbb264cef5e849435ab6e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 2f3bf5f515fea9738b3bdef318de86a6e313b918) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/quick/scenegraph/rhitextureitem/main.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/scenegraph/rhitextureitem/main.qml b/examples/quick/scenegraph/rhitextureitem/main.qml
index dd664eaa57..3eec8bcdab 100644
--- a/examples/quick/scenegraph/rhitextureitem/main.qml
+++ b/examples/quick/scenegraph/rhitextureitem/main.qml
@@ -36,10 +36,10 @@ Item {
fixedColorBufferWidth: cbSize.checked ? slSize.value.toFixed(0) : 0
fixedColorBufferHeight: cbSize.checked ? slSize.value.toFixed(0) : 0
alphaBlending: cbBlend.checked
- colorBufferFormat: rdFormatRGBA8.checked ? ExampleRhiItem.RGBA8
- : rdFormatFP16.checked ? ExampleRhiItem.RGBA16F
- : rdFormatFP32.checked ? ExampleRhiItem.RGBA32F
- : ExampleRhiItem.RGB10A2
+ colorBufferFormat: rdFormatRGBA8.checked ? ExampleRhiItem.TextureFormat.RGBA8
+ : rdFormatFP16.checked ? ExampleRhiItem.TextureFormat.RGBA16F
+ : rdFormatFP32.checked ? ExampleRhiItem.TextureFormat.RGBA32F
+ : ExampleRhiItem.TextureFormat.RGB10A2
// custom properties provided by the QQuickRhiItem subclass: angle, backgroundAlpha
NumberAnimation on angle {