5#ifndef QQUICKRENDERTARGET_P_H
6#define QQUICKRENDERTARGET_P_H
19#include <QtQuick/private/qtquickglobal_p.h>
31 static QQuickRenderTargetPrivate *get(QQuickRenderTarget *rt) {
return rt->d; }
32 static const QQuickRenderTargetPrivate *get(
const QQuickRenderTarget *rt) {
return rt->d; }
33 QQuickRenderTargetPrivate();
34 QQuickRenderTargetPrivate(
const QQuickRenderTargetPrivate &other);
35 bool resolve(QRhi *rhi, QQuickWindowRenderTarget *dst);
47 Type type = Type::Null;
49 qreal devicePixelRatio = 1.0;
51 struct NativeTexture {
57 uint rhiViewFormatFlags;
59 struct NativeTextureArray {
66 uint rhiViewFormatFlags;
69 NativeTexture nativeTexture;
70 NativeTextureArray nativeTextureArray;
71 quint64 nativeRenderbufferObject;
72 QRhiRenderTarget *rhiRt;
73 QPaintDevice *paintDevice;
76 QRhiTexture *customDepthTexture =
nullptr;
77 bool mirrorVertically =
false;
78 bool multisampleResolve =
false;
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
static bool createRhiRenderTargetWithRenderBuffer(QRhiRenderBuffer *renderBuffer, const QSize &pixelSize, int sampleCount, QRhi *rhi, QQuickWindowRenderTarget *dst)
static bool createRhiRenderTargetWithDepthTexture(QRhiTexture *texture, QRhiTexture *depthTexture, const QSize &pixelSize, int sampleCount, bool multisampleResolve, QRhi *rhi, QQuickWindowRenderTarget *dst)
static bool createRhiRenderTargetMultiView(QRhiTexture *texture, QRhiTexture *maybeCustomDepthTexture, const QSize &pixelSize, int arraySize, int sampleCount, bool multisampleResolve, QRhi *rhi, QQuickWindowRenderTarget *dst)
static bool createRhiRenderTarget(QRhiTexture *texture, const QSize &pixelSize, int sampleCount, bool multisampleResolve, QRhi *rhi, QQuickWindowRenderTarget *dst)