aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2024-03-15 09:00:51 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2024-03-15 17:50:07 +0100
commit057ef0fe567193679e2e71995f412ff93236ee3f (patch)
treed43d9b29923e845df166807629355161da6f1fa1 /src/quick
parentb8f5a7848b019be68f0d0fba30fd82b4777a35e5 (diff)
sg: QQuickRt: Fix enum class usage in Metal code path
And fix a doc argument tag. Change-Id: I3e4184f2af953dccd3101aacfbf26831b2f4cbb2 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickrendertarget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/items/qquickrendertarget.cpp b/src/quick/items/qquickrendertarget.cpp
index cbc5fdd530..b8f9000d8a 100644
--- a/src/quick/items/qquickrendertarget.cpp
+++ b/src/quick/items/qquickrendertarget.cpp
@@ -799,11 +799,11 @@ QQuickRenderTarget QQuickRenderTarget::fromMetalTexture(MTLTexture *texture, con
\a sampleCount specifies the number of samples. 0 or 1 means no
multisampling, while a value like 4 or 8 states that the native object is a
multisample texture, except when \a flags contains \l MultisampleResolve. In
- that case, \a image is assumed to be a non-multisample 2D texture or 2D
+ that case, \a texture is assumed to be a non-multisample 2D texture or 2D
texture array, and \a sampleCount defines the number of samples desired. The
resulting QQuickRenderTarget will use an intermediate, automatically created
multisample texture (or texture array) as its color attachment, and will
- resolve the samples into \a image. This is the recommended approach to
+ resolve the samples into \a texture. This is the recommended approach to
perform MSAA when the native Metal texture is not already multisample.
The number of array elements (layers) is given in \a arraySize. When greater
@@ -851,7 +851,7 @@ QQuickRenderTarget QQuickRenderTarget::fromMetalTexture(MTLTexture *texture, uin
d->pixelSize = pixelSize;
d->sampleCount = qMax(1, sampleCount);
- d->multisampleResolve = flags.testFlag(MultisampleResolve);
+ d->multisampleResolve = flags.testFlag(Flag::MultisampleResolve);
if (arraySize <= 1) {
d->type = QQuickRenderTargetPrivate::Type::NativeTexture;