aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickrendertarget_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickrendertarget_p.h')
-rw-r--r--src/quick/items/qquickrendertarget_p.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/quick/items/qquickrendertarget_p.h b/src/quick/items/qquickrendertarget_p.h
index dd781709af..d2e9962693 100644
--- a/src/quick/items/qquickrendertarget_p.h
+++ b/src/quick/items/qquickrendertarget_p.h
@@ -22,20 +22,21 @@
QT_BEGIN_NAMESPACE
class QRhi;
-class QQuickWindowRenderTarget;
+struct QQuickWindowRenderTarget;
-class Q_QUICK_PRIVATE_EXPORT QQuickRenderTargetPrivate
+class Q_QUICK_EXPORT QQuickRenderTargetPrivate
{
public:
static QQuickRenderTargetPrivate *get(QQuickRenderTarget *rt) { return rt->d; }
static const QQuickRenderTargetPrivate *get(const QQuickRenderTarget *rt) { return rt->d; }
QQuickRenderTargetPrivate();
- QQuickRenderTargetPrivate(const QQuickRenderTargetPrivate *other);
+ QQuickRenderTargetPrivate(const QQuickRenderTargetPrivate &other);
bool resolve(QRhi *rhi, QQuickWindowRenderTarget *dst);
enum class Type {
Null,
NativeTexture,
+ NativeTextureArray,
NativeRenderbuffer,
RhiRenderTarget,
PaintDevice
@@ -48,18 +49,32 @@ public:
int sampleCount = 1;
struct NativeTexture {
quint64 object;
- int layout;
+ int layoutOrState;
uint rhiFormat;
- uint rhiFlags;
+ uint rhiFormatFlags;
+ uint rhiViewFormat;
+ uint rhiViewFormatFlags;
+ };
+ struct NativeTextureArray {
+ quint64 object;
+ int layoutOrState;
+ int arraySize;
+ uint rhiFormat;
+ uint rhiFormatFlags;
+ uint rhiViewFormat;
+ uint rhiViewFormatFlags;
};
union {
NativeTexture nativeTexture;
+ NativeTextureArray nativeTextureArray;
quint64 nativeRenderbufferObject;
QRhiRenderTarget *rhiRt;
QPaintDevice *paintDevice;
} u;
+ QRhiTexture *customDepthTexture = nullptr;
bool mirrorVertically = false;
+ bool multisampleResolve = false;
};
QT_END_NAMESPACE