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

#include <qopenxrgraphics_opengl_p.h>

Inheritance diagram for QOpenXRGraphicsOpenGL:
Collaboration diagram for QOpenXRGraphicsOpenGL:

Public Types

enum  PlatformType {
  PLATFORM_UNSUPPORTED , PLATFORM_EGL , PLATFORM_WAYLAND , PLATFORM_XLIB ,
  PLATFORM_WIN32
}

Public Member Functions

 QOpenXRGraphicsOpenGL ()
bool initialize (const QVector< XrExtensionProperties > &extensions) override
QVector< const char * > getRequiredExtensions () 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
QRhirhi () const override
void releaseResources () override
Public Member Functions inherited from QAbstractOpenXRGraphics
 QAbstractOpenXRGraphics ()
virtual ~QAbstractOpenXRGraphics ()

Additional Inherited Members

Static Public Member Functions inherited from QAbstractOpenXRGraphics
static bool hasExtension (const QVector< XrExtensionProperties > &extensions, const char *extensionName)

Detailed Description

Definition at line 26 of file qopenxrgraphics_opengl_p.h.

Member Enumeration Documentation

◆ PlatformType

Enumerator
PLATFORM_UNSUPPORTED 
PLATFORM_EGL 
PLATFORM_WAYLAND 
PLATFORM_XLIB 
PLATFORM_WIN32 

Definition at line 31 of file qopenxrgraphics_opengl_p.h.

Constructor & Destructor Documentation

◆ QOpenXRGraphicsOpenGL()

QOpenXRGraphicsOpenGL::QOpenXRGraphicsOpenGL ( )

Definition at line 55 of file qopenxrgraphics_opengl.cpp.

Member Function Documentation

◆ allocateSwapchainImages()

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

Implements QAbstractOpenXRGraphics.

Definition at line 280 of file qopenxrgraphics_opengl.cpp.

◆ colorSwapchainFormat()

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

Implements QAbstractOpenXRGraphics.

Definition at line 252 of file qopenxrgraphics_opengl.cpp.

◆ depthSwapchainFormat()

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

Implements QAbstractOpenXRGraphics.

Definition at line 264 of file qopenxrgraphics_opengl.cpp.

◆ finializeGraphics()

bool QOpenXRGraphicsOpenGL::finializeGraphics ( QRhi * rhi)
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 142 of file qopenxrgraphics_opengl.cpp.

◆ getRequiredExtensions()

QVector< const char * > QOpenXRGraphicsOpenGL::getRequiredExtensions ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 114 of file qopenxrgraphics_opengl.cpp.

◆ handle()

const XrBaseInStructure * QOpenXRGraphicsOpenGL::handle ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 120 of file qopenxrgraphics_opengl.cpp.

◆ initialize()

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

Implements QAbstractOpenXRGraphics.

Definition at line 60 of file qopenxrgraphics_opengl.cpp.

◆ releaseResources()

void QOpenXRGraphicsOpenGL::releaseResources ( )
overridevirtual

Reimplemented from QAbstractOpenXRGraphics.

Definition at line 358 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

Implements QAbstractOpenXRGraphics.

Definition at line 293 of file qopenxrgraphics_opengl.cpp.

◆ rhi()

QRhi * QOpenXRGraphicsOpenGL::rhi ( ) const
inlineoverridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 45 of file qopenxrgraphics_opengl_p.h.

◆ setupGraphics()

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

Implements QAbstractOpenXRGraphics.

Definition at line 126 of file qopenxrgraphics_opengl.cpp.

References OpenXRHelpers::checkXrResult().

Here is the call graph for this function:

◆ setupWindow()

void QOpenXRGraphicsOpenGL::setupWindow ( QQuickWindow * window)
overridevirtual

Reimplemented from QAbstractOpenXRGraphics.

Definition at line 353 of file qopenxrgraphics_opengl.cpp.


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