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
QOpenXRGraphicsOpenGLES Class Reference

#include <qopenxrgraphics_opengles_p.h>

+ Inheritance diagram for QOpenXRGraphicsOpenGLES:
+ Collaboration diagram for QOpenXRGraphicsOpenGLES:

Public Member Functions

 QOpenXRGraphicsOpenGLES ()
 
bool isExtensionSupported (const QVector< XrExtensionProperties > &extensions) const override
 
const char * extensionName () const override
 
const XrBaseInStructure * handle () const override
 
bool setupGraphics (const XrInstance &instance, XrSystemId &systemId, const QQuickGraphicsConfiguration &quickConfig) override
 
bool finializeGraphics (QRhi *rhi) override
 
int64_t colorSwapchainFormat (const QVector< int64_t > &swapchainFormats) const override
 
int64_t depthSwapchainFormat (const QVector< int64_t > &swapchainFormats) const override
 
QVector< XrSwapchainImageBaseHeader * > allocateSwapchainImages (int count, XrSwapchain swapchain) override
 
QQuickRenderTarget renderTarget (const XrSwapchainSubImage &subImage, const XrSwapchainImageBaseHeader *swapchainImage, quint64 swapchainFormat, int samples, int arraySize, const XrSwapchainImageBaseHeader *depthSwapchainImage, quint64 depthSwapchainFormat) const override
 
void releaseResources () override
 
- Public Member Functions inherited from QAbstractOpenXRGraphics
 QAbstractOpenXRGraphics ()
 
virtual ~QAbstractOpenXRGraphics ()
 
virtual void setupWindow (QQuickWindow *)
 

Detailed Description

Definition at line 26 of file qopenxrgraphics_opengles_p.h.

Constructor & Destructor Documentation

◆ QOpenXRGraphicsOpenGLES()

QOpenXRGraphicsOpenGLES::QOpenXRGraphicsOpenGLES ( )

Definition at line 17 of file qopenxrgraphics_opengles.cpp.

Member Function Documentation

◆ allocateSwapchainImages()

QVector< XrSwapchainImageBaseHeader * > QOpenXRGraphicsOpenGLES::allocateSwapchainImages ( int count,
XrSwapchain swapchain )
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 124 of file qopenxrgraphics_opengles.cpp.

◆ colorSwapchainFormat()

int64_t QOpenXRGraphicsOpenGLES::colorSwapchainFormat ( const QVector< int64_t > & swapchainFormats) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 92 of file qopenxrgraphics_opengles.cpp.

References GL_RGBA8_SNORM, and GL_SRGB8_ALPHA8_EXT.

◆ depthSwapchainFormat()

int64_t QOpenXRGraphicsOpenGLES::depthSwapchainFormat ( const QVector< int64_t > & swapchainFormats) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 107 of file qopenxrgraphics_opengles.cpp.

References GL_DEPTH24_STENCIL8_OES, GL_DEPTH_COMPONENT16_OES, GL_DEPTH_COMPONENT24_OES, and GL_DEPTH_COMPONENT32F.

Referenced by renderTarget().

+ Here is the caller graph for this function:

◆ extensionName()

const char * QOpenXRGraphicsOpenGLES::extensionName ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 37 of file qopenxrgraphics_opengles.cpp.

◆ finializeGraphics()

bool QOpenXRGraphicsOpenGLES::finializeGraphics ( QRhi * rhi)
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 66 of file qopenxrgraphics_opengles.cpp.

References context, QRhi::nativeHandles(), and qDebug.

+ Here is the call graph for this function:

◆ handle()

const XrBaseInStructure * QOpenXRGraphicsOpenGLES::handle ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 43 of file qopenxrgraphics_opengles.cpp.

◆ isExtensionSupported()

bool QOpenXRGraphicsOpenGLES::isExtensionSupported ( const QVector< XrExtensionProperties > & extensions) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 26 of file qopenxrgraphics_opengles.cpp.

References extension().

+ Here is the call graph for this function:

◆ releaseResources()

void QOpenXRGraphicsOpenGLES::releaseResources ( )
overridevirtual

Reimplemented from QAbstractOpenXRGraphics.

Definition at line 197 of file qopenxrgraphics_opengles.cpp.

◆ renderTarget()

QQuickRenderTarget QOpenXRGraphicsOpenGLES::renderTarget ( const XrSwapchainSubImage & subImage,
const XrSwapchainImageBaseHeader * swapchainImage,
quint64 swapchainFormat,
int samples,
int arraySize,
const XrSwapchainImageBaseHeader * depthSwapchainImage,
quint64 depthSwapchainFormat ) const
overridevirtual

◆ setupGraphics()

bool QOpenXRGraphicsOpenGLES::setupGraphics ( const XrInstance & instance,
XrSystemId & systemId,
const QQuickGraphicsConfiguration & quickConfig )
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 49 of file qopenxrgraphics_opengles.cpp.

References OpenXRHelpers::checkXrResult(), and qWarning.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: