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
4#ifndef QOPENXRGRAPHICSOPENGLES_H
5#define QOPENXRGRAPHICSOPENGLES_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
19#include <QtQuick3DXr/private/qabstractopenxrgraphics_p.h>
20#include <QtQuick3DXr/private/qopenxrplatform_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QRhiTexture;
25
27{
28public:
30
31 bool isExtensionSupported(const QVector<XrExtensionProperties> &extensions) const override;
32 const char *extensionName() const override;
33 const XrBaseInStructure *handle() const override;
34 bool setupGraphics(const XrInstance &instance, XrSystemId &systemId, const QQuickGraphicsConfiguration &quickConfig) override;
35 bool finializeGraphics(QRhi *rhi) override;
36 int64_t colorSwapchainFormat(const QVector<int64_t> &swapchainFormats) const override;
37 int64_t depthSwapchainFormat(const QVector<int64_t> &swapchainFormats) const override;
38 QVector<XrSwapchainImageBaseHeader*> allocateSwapchainImages(int count, XrSwapchain swapchain) override;
39 QQuickRenderTarget renderTarget(const XrSwapchainSubImage &subImage, const XrSwapchainImageBaseHeader *swapchainImage,
40 quint64 swapchainFormat, int samples, int arraySize,
41 const XrSwapchainImageBaseHeader *depthSwapchainImage, quint64 depthSwapchainFormat) const override;
42 QRhi *rhi() const override { return m_rhi; }
44
45private:
46#ifdef XR_USE_PLATFORM_ANDROID
48#endif
50
51 XrGraphicsRequirementsOpenGLESKHR m_graphicsRequirements{};
52
53 QRhi *m_rhi = nullptr;
54 mutable QRhiTexture *m_depthTexture = nullptr;
55};
56
57QT_END_NAMESPACE
58
59#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
const char * extensionName() const override
int64_t depthSwapchainFormat(const QVector< int64_t > &swapchainFormats) const override
QVector< XrSwapchainImageBaseHeader * > allocateSwapchainImages(int count, XrSwapchain swapchain) override
bool isExtensionSupported(const QVector< XrExtensionProperties > &extensions) 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
bool checkXrResult(XrResult result, XrInstance instance)
#define GL_DEPTH_COMPONENT32F
Definition qopenglext.h:994