diff options
author | Laszlo Agocs <[email protected]> | 2024-03-04 15:02:10 +0100 |
---|---|---|
committer | Laszlo Agocs <[email protected]> | 2024-03-05 11:33:51 +0100 |
commit | 2f3bf5f515fea9738b3bdef318de86a6e313b918 (patch) | |
tree | 5a2a4fa4f2525e413cd2bd5892e34eb53ec5e0ea | |
parent | c00e6b1c40f5cfa4c0183429e7972153e96da919 (diff) |
Use scoped enum for format in rhitextureitem example
Pick-to: 6.7
Change-Id: I2add2eb838cf7087902fbb264cef5e849435ab6e
Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r-- | examples/quick/scenegraph/rhitextureitem/main.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/scenegraph/rhitextureitem/main.qml b/examples/quick/scenegraph/rhitextureitem/main.qml index d4b3a703f2..dc386d2cf2 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 { |