Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickrendertarget_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKRENDERTARGET_P_H
5#define QQUICKRENDERTARGET_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick/private/qtquickglobal_p.h>
19#include "qquickrendertarget.h"
20#include <QAtomicInt>
21
23
24class QRhi;
26
27class Q_QUICK_EXPORT QQuickRenderTargetPrivate
28{
29public:
30 static QQuickRenderTargetPrivate *get(QQuickRenderTarget *rt) { return rt->d; }
31 static const QQuickRenderTargetPrivate *get(const QQuickRenderTarget *rt) { return rt->d; }
35
36 enum class Type {
37 Null,
40 NativeRenderbuffer,
41 RhiRenderTarget,
42 PaintDevice
43 };
44
46 Type type = Type::Null;
48 qreal devicePixelRatio = 1.0;
49 int sampleCount = 1;
67 union {
73 } u;
74
75 QRhiTexture *customDepthTexture = nullptr;
76 bool mirrorVertically = false;
77 bool multisampleResolve = false;
78};
79
81
82#endif // QQUICKRENDERTARGET_P_H
\inmodule QtCore
Definition qatomic.h:112
NativeTextureArray nativeTextureArray
static QQuickRenderTargetPrivate * get(QQuickRenderTarget *rt)
static const QQuickRenderTargetPrivate * get(const QQuickRenderTarget *rt)
The QQuickRenderTarget class provides an opaque container for native graphics resources specifying a ...
\inmodule QtGui
Definition qrhi.h:1158
\inmodule QtGui
Definition qrhi.h:895
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
GLenum type
GLenum GLenum dst
static const QQmlJSScope * resolve(const QQmlJSScope *current, const QStringList &names)
unsigned long long quint64
Definition qtypes.h:61
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187
QSharedPointer< T > other(t)
[5]
Definition moc.h:23