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

#include <qopenxrgraphics_opengl_p.h>

+ Inheritance diagram for QOpenXRGraphicsOpenGL:
+ Collaboration diagram for QOpenXRGraphicsOpenGL:

Public Member Functions

 QOpenXRGraphicsOpenGL ()
 
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 setupWindow (QQuickWindow *window) override
 
void releaseResources () override
 
- Public Member Functions inherited from QAbstractOpenXRGraphics
 QAbstractOpenXRGraphics ()
 
virtual ~QAbstractOpenXRGraphics ()
 

Detailed Description

Definition at line 26 of file qopenxrgraphics_opengl_p.h.

Constructor & Destructor Documentation

◆ QOpenXRGraphicsOpenGL()

QOpenXRGraphicsOpenGL::QOpenXRGraphicsOpenGL ( )

Definition at line 39 of file qopenxrgraphics_opengl.cpp.

Member Function Documentation

◆ allocateSwapchainImages()

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

Implements QAbstractOpenXRGraphics.

Definition at line 151 of file qopenxrgraphics_opengl.cpp.

◆ colorSwapchainFormat()

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

Implements QAbstractOpenXRGraphics.

Definition at line 120 of file qopenxrgraphics_opengl.cpp.

References GL_RGBA8, and GL_RGBA8_SNORM.

◆ depthSwapchainFormat()

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

Implements QAbstractOpenXRGraphics.

Definition at line 135 of file qopenxrgraphics_opengl.cpp.

References GL_DEPTH24_STENCIL8, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, and GL_DEPTH_COMPONENT32F.

Referenced by renderTarget().

+ Here is the caller graph for this function:

◆ extensionName()

const char * QOpenXRGraphicsOpenGL::extensionName ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 66 of file qopenxrgraphics_opengl.cpp.

◆ finializeGraphics()

bool QOpenXRGraphicsOpenGL::finializeGraphics ( QRhi * rhi)
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 94 of file qopenxrgraphics_opengl.cpp.

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

+ Here is the call graph for this function:

◆ handle()

const XrBaseInStructure * QOpenXRGraphicsOpenGL::handle ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 72 of file qopenxrgraphics_opengl.cpp.

◆ isExtensionSupported()

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

Implements QAbstractOpenXRGraphics.

Definition at line 55 of file qopenxrgraphics_opengl.cpp.

References extension().

+ Here is the call graph for this function:

◆ releaseResources()

void QOpenXRGraphicsOpenGL::releaseResources ( )
overridevirtual

Reimplemented from QAbstractOpenXRGraphics.

Definition at line 229 of file qopenxrgraphics_opengl.cpp.

◆ renderTarget()

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

◆ setupGraphics()

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

Implements QAbstractOpenXRGraphics.

Definition at line 78 of file qopenxrgraphics_opengl.cpp.

References OpenXRHelpers::checkXrResult(), and qWarning.

+ Here is the call graph for this function:

◆ setupWindow()

void QOpenXRGraphicsOpenGL::setupWindow ( QQuickWindow * window)
overridevirtual

Reimplemented from QAbstractOpenXRGraphics.

Definition at line 224 of file qopenxrgraphics_opengl.cpp.

References window().

+ Here is the call graph for this function:

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