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

#include <qopenxrgraphics_d3d12_p.h>

+ Inheritance diagram for QOpenXRGraphicsD3D12:
+ Collaboration diagram for QOpenXRGraphicsD3D12:

Public Member Functions

 QOpenXRGraphicsD3D12 ()
 
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 *quickWindow) override
 
- Public Member Functions inherited from QAbstractOpenXRGraphics
 QAbstractOpenXRGraphics ()
 
virtual ~QAbstractOpenXRGraphics ()
 
virtual void releaseResources ()
 

Detailed Description

Definition at line 25 of file qopenxrgraphics_d3d12_p.h.

Constructor & Destructor Documentation

◆ QOpenXRGraphicsD3D12()

QT_BEGIN_NAMESPACE QOpenXRGraphicsD3D12::QOpenXRGraphicsD3D12 ( )

Definition at line 15 of file qopenxrgraphics_d3d12.cpp.

Member Function Documentation

◆ allocateSwapchainImages()

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

Implements QAbstractOpenXRGraphics.

Definition at line 103 of file qopenxrgraphics_d3d12.cpp.

◆ colorSwapchainFormat()

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

Implements QAbstractOpenXRGraphics.

Definition at line 70 of file qopenxrgraphics_d3d12.cpp.

◆ depthSwapchainFormat()

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

Implements QAbstractOpenXRGraphics.

Definition at line 88 of file qopenxrgraphics_d3d12.cpp.

Referenced by renderTarget().

+ Here is the caller graph for this function:

◆ extensionName()

const char * QOpenXRGraphicsD3D12::extensionName ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 32 of file qopenxrgraphics_d3d12.cpp.

◆ finializeGraphics()

bool QOpenXRGraphicsD3D12::finializeGraphics ( QRhi * rhi)
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 61 of file qopenxrgraphics_d3d12.cpp.

References QRhi::nativeHandles().

+ Here is the call graph for this function:

◆ handle()

const XrBaseInStructure * QOpenXRGraphicsD3D12::handle ( ) const
overridevirtual

Implements QAbstractOpenXRGraphics.

Definition at line 38 of file qopenxrgraphics_d3d12.cpp.

◆ isExtensionSupported()

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

Implements QAbstractOpenXRGraphics.

Definition at line 21 of file qopenxrgraphics_d3d12.cpp.

References extension().

+ Here is the call graph for this function:

◆ renderTarget()

QQuickRenderTarget QOpenXRGraphicsD3D12::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 116 of file qopenxrgraphics_d3d12.cpp.

References depthSwapchainFormat(), QQuickRenderTarget::MultisampleResolve, and Q_UNUSED.

+ Here is the call graph for this function:

◆ setupGraphics()

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

Implements QAbstractOpenXRGraphics.

Definition at line 44 of file qopenxrgraphics_d3d12.cpp.

References OpenXRHelpers::checkXrResult(), and qWarning.

+ Here is the call graph for this function:

◆ setupWindow()

void QOpenXRGraphicsD3D12::setupWindow ( QQuickWindow * quickWindow)
overridevirtual

Reimplemented from QAbstractOpenXRGraphics.

Definition at line 158 of file qopenxrgraphics_d3d12.cpp.


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