Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
24QT_BEGIN_NAMESPACE
25
26class QRhiTexture;
27
29{
30public:
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; }
46
47private:
48#ifdef XR_USE_PLATFORM_ANDROID
50#endif
52
53 XrGraphicsRequirementsOpenGLESKHR m_graphicsRequirements{};
54
55 QRhi *m_rhi = nullptr;
56 mutable QRhiTexture *m_depthTexture = nullptr;
57};
58
59QT_END_NAMESPACE
60
61#endif // QOPENXRGRAPHICSOPENGLES_H
QQuickRenderTarget renderTarget(const XrSwapchainSubImage &subImage, const XrSwapchainImageBaseHeader *swapchainImage, quint64 swapchainFormat, int samples, int arraySize, const XrSwapchainImageBaseHeader *depthSwapchainImage, quint64 depthSwapchainFormat) const override
const XrBaseInStructure * handle() const override
int64_t depthSwapchainFormat(const QVector< int64_t > &swapchainFormats) const override
bool initialize(const QVector< XrExtensionProperties > &extensions) override
QVector< XrSwapchainImageBaseHeader * > allocateSwapchainImages(int count, XrSwapchain swapchain) override
QVector< const char * > getRequiredExtensions() const override
bool finializeGraphics(QRhi *rhi) override
bool setupGraphics(const XrInstance &instance, XrSystemId &systemId, const QQuickGraphicsConfiguration &quickConfig) override
int64_t colorSwapchainFormat(const QVector< int64_t > &swapchainFormats) const override
Combined button and popup list for selecting options.
#define GL_DEPTH_COMPONENT32F
Definition qopenglext.h:994