aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickrendertarget_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-26 17:18:37 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-26 21:08:06 +0200
commitccb9eb0cc17c689f6be61e83d2d9fb5724a6338d (patch)
treeb68f89d1bdf582b5dd89259b2b1da5dd43cb1b0b /src/quick/items/qquickrendertarget_p.h
parente79281533d61dda90d1c5995345a66e6089c7501 (diff)
Follow QQuickGraphicsDevice changes in QQuickRenderTarget
They are not strictly related of course, but the API pattern should be kept. We can also move away from the QSGTexture dependency which is good since that was never directly related. Change-Id: I9aedff5918443bda3d6e3ee1ea389071222d1ad7 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquickrendertarget_p.h')
-rw-r--r--src/quick/items/qquickrendertarget_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/quick/items/qquickrendertarget_p.h b/src/quick/items/qquickrendertarget_p.h
index 628e5c277b..173cb699b6 100644
--- a/src/quick/items/qquickrendertarget_p.h
+++ b/src/quick/items/qquickrendertarget_p.h
@@ -79,8 +79,12 @@ public:
Type type = Type::Null;
QSize pixelSize;
int sampleCount = 1;
+ struct NativeTexture {
+ quint64 object;
+ int layout;
+ };
union {
- QSGTexture::NativeTexture nativeTexture;
+ NativeTexture nativeTexture;
QRhiRenderTarget *rhiRt;
} u;
};