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
qopenxrgraphics_opengles_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QOPENXRGRAPHICSOPENGLES_H
7
#
define
QOPENXRGRAPHICSOPENGLES_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
21
#
include
<
QtQuick3DXr
/
private
/
qabstractopenxrgraphics_p
.
h
>
22
#
include
<
QtQuick3DXr
/
private
/
qopenxrplatform_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QRhiTexture;
27
28
class
QOpenXRGraphicsOpenGLES
:
public
QAbstractOpenXRGraphics
29
{
30
public
:
31
QOpenXRGraphicsOpenGLES
();
32
33
bool
initialize
(
const
QVector<XrExtensionProperties> &extensions)
override
;
34
QVector
<
const
char
*>
getRequiredExtensions
()
const
override
;
35
const
XrBaseInStructure
*
handle
()
const
override
;
36
bool
setupGraphics
(
const
XrInstance &instance, XrSystemId &systemId,
const
QQuickGraphicsConfiguration &quickConfig)
override
;
37
bool
finializeGraphics
(QRhi *rhi)
override
;
38
int64_t
colorSwapchainFormat
(
const
QVector<int64_t> &swapchainFormats)
const
override
;
39
int64_t
depthSwapchainFormat
(
const
QVector<int64_t> &swapchainFormats)
const
override
;
40
QVector
<
XrSwapchainImageBaseHeader
*>
allocateSwapchainImages
(
int
count, XrSwapchain swapchain)
override
;
41
QQuickRenderTarget
renderTarget
(
const
XrSwapchainSubImage &subImage,
const
XrSwapchainImageBaseHeader *swapchainImage,
42
quint64 swapchainFormat,
int
samples,
int
arraySize,
43
const
XrSwapchainImageBaseHeader *depthSwapchainImage, quint64 depthSwapchainFormat)
const
override
;
44
QRhi
*
rhi
()
const
override
{
return
m_rhi; }
45
void
releaseResources
()
override
;
46
47
private
:
48
#
ifdef
XR_USE_PLATFORM_ANDROID
49
XrGraphicsBindingOpenGLESAndroidKHR
m_graphicsBinding
{};
50
#
endif
51
QMap
<
XrSwapchain
,
QVector
<
XrSwapchainImageOpenGLESKHR
>>
m_swapchainImageBuffer
;
52
53
XrGraphicsRequirementsOpenGLESKHR m_graphicsRequirements{};
54
55
QRhi *m_rhi =
nullptr
;
56
mutable
QRhiTexture *m_depthTexture =
nullptr
;
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// QOPENXRGRAPHICSOPENGLES_H
QOpenXRGraphicsOpenGLES
Definition
qopenxrgraphics_opengles_p.h:29
QOpenXRGraphicsOpenGLES::renderTarget
QQuickRenderTarget renderTarget(const XrSwapchainSubImage &subImage, const XrSwapchainImageBaseHeader *swapchainImage, quint64 swapchainFormat, int samples, int arraySize, const XrSwapchainImageBaseHeader *depthSwapchainImage, quint64 depthSwapchainFormat) const override
Definition
qopenxrgraphics_opengles.cpp:132
QOpenXRGraphicsOpenGLES::handle
const XrBaseInStructure * handle() const override
Definition
qopenxrgraphics_opengles.cpp:38
QOpenXRGraphicsOpenGLES::releaseResources
void releaseResources() override
Definition
qopenxrgraphics_opengles.cpp:192
QOpenXRGraphicsOpenGLES::depthSwapchainFormat
int64_t depthSwapchainFormat(const QVector< int64_t > &swapchainFormats) const override
Definition
qopenxrgraphics_opengles.cpp:102
QOpenXRGraphicsOpenGLES::initialize
bool initialize(const QVector< XrExtensionProperties > &extensions) override
Definition
qopenxrgraphics_opengles.cpp:27
QOpenXRGraphicsOpenGLES::allocateSwapchainImages
QVector< XrSwapchainImageBaseHeader * > allocateSwapchainImages(int count, XrSwapchain swapchain) override
Definition
qopenxrgraphics_opengles.cpp:119
QOpenXRGraphicsOpenGLES::getRequiredExtensions
QVector< const char * > getRequiredExtensions() const override
Definition
qopenxrgraphics_opengles.cpp:32
QOpenXRGraphicsOpenGLES::QOpenXRGraphicsOpenGLES
QOpenXRGraphicsOpenGLES()
Definition
qopenxrgraphics_opengles.cpp:19
QOpenXRGraphicsOpenGLES::finializeGraphics
bool finializeGraphics(QRhi *rhi) override
Definition
qopenxrgraphics_opengles.cpp:61
QOpenXRGraphicsOpenGLES::setupGraphics
bool setupGraphics(const XrInstance &instance, XrSystemId &systemId, const QQuickGraphicsConfiguration &quickConfig) override
Definition
qopenxrgraphics_opengles.cpp:44
QOpenXRGraphicsOpenGLES::colorSwapchainFormat
int64_t colorSwapchainFormat(const QVector< int64_t > &swapchainFormats) const override
Definition
qopenxrgraphics_opengles.cpp:87
QOpenXRGraphicsOpenGLES::rhi
QRhi * rhi() const override
Definition
qopenxrgraphics_opengles_p.h:44
OpenXRHelpers
Definition
qopenxrhelpers_p.h:30
OpenXRHelpers::checkXrResult
bool checkXrResult(XrResult result, XrInstance instance)
Definition
qopenxrhelpers.cpp:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
GL_DEPTH_COMPONENT32F
#define GL_DEPTH_COMPONENT32F
Definition
qopenglext.h:994
qtquick3d
src
xr
quick3dxr
openxr
qopenxrgraphics_opengles_p.h
Generated on
for Qt by
1.18.0