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
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
4
#ifndef QRHIWIDGET_P_H
5
#define QRHIWIDGET_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 "
qrhiwidget.h
"
19
#include <
rhi/qrhi.h
>
20
#include <private/qwidget_p.h>
21
#include <private/qbackingstorerhisupport_p.h>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QRhiWidgetPrivate
:
public
QWidgetPrivate
26
{
27
Q_DECLARE_PUBLIC(
QRhiWidget
)
28
public
:
29
TextureData
texture
()
const override
;
30
QPlatformTextureList::Flags
textureListFlags
()
override
;
31
QPlatformBackingStoreRhiConfig
rhiConfig
()
const override
;
32
void
endCompose
()
override
;
33
QImage
grabFramebuffer
()
override
;
34
35
void
ensureRhi
();
36
void
ensureTexture
(
bool
*changed);
37
bool
invokeInitialize
(
QRhiCommandBuffer
*
cb
);
38
void
resetColorBufferObjects
();
39
void
resetRenderTargetObjects
();
40
void
releaseResources
();
41
42
QRhi
*
rhi
=
nullptr
;
43
bool
noSize
=
false
;
44
QPlatformBackingStoreRhiConfig
config
;
45
QRhiWidget::TextureFormat
widgetTextureFormat
=
QRhiWidget::TextureFormat::RGBA8
;
46
QRhiTexture::Format
rhiTextureFormat
=
QRhiTexture::RGBA8
;
47
int
samples
= 1;
48
QSize
fixedSize
;
49
bool
autoRenderTarget
=
true
;
50
bool
mirrorVertically
=
false
;
51
QBackingStoreRhiSupport
offscreenRenderer
;
52
bool
textureInvalid
=
false
;
53
QRhiTexture
*
colorTexture
=
nullptr
;
54
QRhiRenderBuffer
*
msaaColorBuffer
=
nullptr
;
55
QRhiTexture
*
resolveTexture
=
nullptr
;
56
QRhiRenderBuffer
*
depthStencilBuffer
=
nullptr
;
57
QRhiTextureRenderTarget
*
renderTarget
=
nullptr
;
58
QRhiRenderPassDescriptor
*
renderPassDescriptor
=
nullptr
;
59
mutable
QVector<QRhiResource *>
pendingDeletes
;
60
};
61
62
QT_END_NAMESPACE
63
64
#endif
QBackingStoreRhiSupport
Definition
qbackingstorerhisupport_p.h:28
QImage
\inmodule QtGui
Definition
qimage.h:37
QRhiCommandBuffer
\inmodule QtGui
Definition
qrhi.h:1651
QRhiRenderBuffer
\inmodule QtGui
Definition
qrhi.h:1094
QRhiRenderPassDescriptor
\inmodule QtGui
Definition
qrhi.h:1142
QRhiTextureRenderTarget
\inmodule QtGui
Definition
qrhi.h:1184
QRhiTexture
\inmodule QtGui
Definition
qrhi.h:895
QRhiTexture::Format
Format
Specifies the texture format.
Definition
qrhi.h:914
QRhiTexture::RGBA8
@ RGBA8
Definition
qrhi.h:917
QRhiWidgetPrivate
Definition
qrhiwidget_p.h:26
QRhiWidgetPrivate::textureInvalid
bool textureInvalid
Definition
qrhiwidget_p.h:52
QRhiWidgetPrivate::releaseResources
void releaseResources()
Definition
qrhiwidget.cpp:467
QRhiWidgetPrivate::renderPassDescriptor
QRhiRenderPassDescriptor * renderPassDescriptor
Definition
qrhiwidget_p.h:58
QRhiWidgetPrivate::widgetTextureFormat
QRhiWidget::TextureFormat widgetTextureFormat
Definition
qrhiwidget_p.h:45
QRhiWidgetPrivate::colorTexture
QRhiTexture * colorTexture
Definition
qrhiwidget_p.h:53
QRhiWidgetPrivate::invokeInitialize
bool invokeInitialize(QRhiCommandBuffer *cb)
Definition
qrhiwidget.cpp:634
QRhiWidgetPrivate::pendingDeletes
QVector< QRhiResource * > pendingDeletes
Definition
qrhiwidget_p.h:59
QRhiWidgetPrivate::noSize
bool noSize
Definition
qrhiwidget_p.h:43
QRhiWidgetPrivate::renderTarget
QRhiTextureRenderTarget * renderTarget
Definition
qrhiwidget_p.h:57
QRhiWidgetPrivate::grabFramebuffer
QImage grabFramebuffer() override
Definition
qrhiwidget.cpp:355
QRhiWidgetPrivate::msaaColorBuffer
QRhiRenderBuffer * msaaColorBuffer
Definition
qrhiwidget_p.h:54
QRhiWidgetPrivate::resolveTexture
QRhiTexture * resolveTexture
Definition
qrhiwidget_p.h:55
QRhiWidgetPrivate::ensureRhi
void ensureRhi()
Definition
qrhiwidget.cpp:475
QRhiWidgetPrivate::offscreenRenderer
QBackingStoreRhiSupport offscreenRenderer
Definition
qrhiwidget_p.h:51
QRhiWidgetPrivate::resetRenderTargetObjects
void resetRenderTargetObjects()
Definition
qrhiwidget.cpp:451
QRhiWidgetPrivate::rhiTextureFormat
QRhiTexture::Format rhiTextureFormat
Definition
qrhiwidget_p.h:46
QRhiWidgetPrivate::rhiConfig
QPlatformBackingStoreRhiConfig rhiConfig() const override
Definition
qrhiwidget.cpp:334
QRhiWidgetPrivate::textureListFlags
QPlatformTextureList::Flags textureListFlags() override
Definition
qrhiwidget.cpp:326
QRhiWidgetPrivate::autoRenderTarget
bool autoRenderTarget
Definition
qrhiwidget_p.h:49
QRhiWidgetPrivate::ensureTexture
void ensureTexture(bool *changed)
Definition
qrhiwidget.cpp:522
QRhiWidgetPrivate::mirrorVertically
bool mirrorVertically
Definition
qrhiwidget_p.h:50
QRhiWidgetPrivate::depthStencilBuffer
QRhiRenderBuffer * depthStencilBuffer
Definition
qrhiwidget_p.h:56
QRhiWidgetPrivate::config
QPlatformBackingStoreRhiConfig config
Definition
qrhiwidget_p.h:44
QRhiWidgetPrivate::texture
TextureData texture() const override
Definition
qrhiwidget.cpp:308
QRhiWidgetPrivate::rhi
QRhi * rhi
Definition
qrhiwidget_p.h:42
QRhiWidgetPrivate::endCompose
void endCompose() override
Definition
qrhiwidget.cpp:339
QRhiWidgetPrivate::resetColorBufferObjects
void resetColorBufferObjects()
Definition
qrhiwidget.cpp:435
QRhiWidgetPrivate::fixedSize
QSize fixedSize
Definition
qrhiwidget_p.h:48
QRhiWidget
\inmodule QtWidgets
Definition
qrhiwidget.h:19
QRhiWidget::TextureFormat
TextureFormat
Specifies the format of the texture to which the QRhiWidget renders.
Definition
qrhiwidget.h:42
QRhiWidget::TextureFormat::RGBA8
@ RGBA8
QRhi
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition
qrhi.h:1804
QSize
\inmodule QtCore
Definition
qsize.h:25
QWidgetPrivate
Definition
qwidget_p.h:180
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
samples
GLsizei samples
Definition
qopengles2ext.h:738
qrhi.h
qrhiwidget.h
cb
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)
Definition
qsslsocket_openssl_symbols.cpp:398
QPlatformBackingStoreRhiConfig
Definition
qplatformbackingstore.h:41
QWidgetPrivate::TextureData
Definition
qwidget_p.h:593
qtbase
src
widgets
kernel
qrhiwidget_p.h
Generated by
1.10.0