Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qrhiwidget_p.h
Go to the documentation of this file.
1
// Copyright (C) 2023 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QRHIWIDGET_P_H
6
#
define
QRHIWIDGET_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
"qrhiwidget.h"
20
#
include
<
rhi
/
qrhi
.
h
>
21
#
include
<
private
/
qwidget_p
.
h
>
22
#
include
<
private
/
qbackingstorerhisupport_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
Q_WIDGETS_EXPORT
QRhiWidgetPrivate
:
public
QWidgetPrivate
27
{
28
Q_DECLARE_PUBLIC(QRhiWidget)
29
public
:
30
TextureData texture()
const
override;
31
QPlatformTextureList::Flags textureListFlags() override;
32
QPlatformBackingStoreRhiConfig rhiConfig()
const
override;
33
void
endCompose() override;
34
QImage grabFramebuffer() override;
35
36
void
init();
37
void
ensureRhi();
38
void
ensureTexture(
bool
*changed);
39
bool
invokeInitialize(QRhiCommandBuffer *cb);
40
void
resetColorBufferObjects();
41
void
resetRenderTargetObjects();
42
void
releaseResources();
43
44
QRhi *rhi =
nullptr
;
45
bool
noSize =
false
;
46
QPlatformBackingStoreRhiConfig config;
47
QRhiWidget::TextureFormat widgetTextureFormat = QRhiWidget::TextureFormat::RGBA8;
48
QRhiTexture::Format rhiTextureFormat = QRhiTexture::RGBA8;
49
int
samples = 1;
50
QSize fixedSize;
51
bool
autoRenderTarget =
true
;
52
bool
mirrorVertically =
false
;
53
QBackingStoreRhiSupport offscreenRenderer;
54
bool
textureInvalid =
false
;
55
QRhiTexture *colorTexture =
nullptr
;
56
QRhiRenderBuffer *msaaColorBuffer =
nullptr
;
57
QRhiTexture *resolveTexture =
nullptr
;
58
QRhiRenderBuffer *depthStencilBuffer =
nullptr
;
59
QRhiTextureRenderTarget *renderTarget =
nullptr
;
60
QRhiRenderPassDescriptor *renderPassDescriptor =
nullptr
;
61
mutable
QVector<QRhiResource *> pendingDeletes;
62
};
63
64
QT_END_NAMESPACE
65
66
#
endif
QRhiWidgetPrivate
Definition
qrhiwidget_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
widgets
kernel
qrhiwidget_p.h
Generated on
for Qt by
1.18.0