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

#include <qbackingstorerhisupport_p.h>

+ Collaboration diagram for QBackingStoreRhiSupport:

Public Member Functions

 ~QBackingStoreRhiSupport ()
 
void reset ()
 
void setFormat (const QSurfaceFormat &format)
 
void setWindow (QWindow *window)
 
void setConfig (const QPlatformBackingStoreRhiConfig &config)
 
bool create ()
 
QRhiSwapChainswapChainForWindow (QWindow *window)
 
QRhirhi () const
 

Static Public Member Functions

static QSurface::SurfaceType surfaceTypeForConfig (const QPlatformBackingStoreRhiConfig &config)
 
static bool checkForceRhi (QPlatformBackingStoreRhiConfig *outConfig, QSurface::SurfaceType *outType)
 
static QRhi::Implementation apiToRhiBackend (QPlatformBackingStoreRhiConfig::Api api)
 

Friends

class QBackingStoreRhiSupportWindowWatcher
 

Detailed Description

Definition at line 27 of file qbackingstorerhisupport_p.h.

Constructor & Destructor Documentation

◆ ~QBackingStoreRhiSupport()

QT_BEGIN_NAMESPACE QBackingStoreRhiSupport::~QBackingStoreRhiSupport ( )

Definition at line 21 of file qbackingstorerhisupport.cpp.

Member Function Documentation

◆ apiToRhiBackend()

◆ checkForceRhi()

bool QBackingStoreRhiSupport::checkForceRhi ( QPlatformBackingStoreRhiConfig * outConfig,
QSurface::SurfaceType * outType )
static

Definition at line 259 of file qbackingstorerhisupport.cpp.

References apiToRhiBackend(), QRhi::backendName(), QPlatformBackingStoreRhiConfig::D3D11, QPlatformBackingStoreRhiConfig::D3D12, QPlatformBackingStoreRhiConfig::Metal, QPlatformBackingStoreRhiConfig::OpenGL, qCDebug, qEnvironmentVariable(), qEnvironmentVariableIntValue(), qEnvironmentVariableIsSet(), QStringLiteral, qWarning, surfaceTypeForConfig(), and QPlatformBackingStoreRhiConfig::Vulkan.

Referenced by q_evaluateRhiConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

◆ reset()

void QBackingStoreRhiSupport::reset ( )

Definition at line 34 of file qbackingstorerhisupport.cpp.

References QHash< Key, T >::clear(), and d.

Referenced by QQuickWidgetPrivate::destroy(), QRhiWidgetPrivate::ensureRhi(), and QPlatformBackingStore::graphicsDeviceReportedLost().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rhi()

QRhi * QBackingStoreRhiSupport::rhi ( ) const
inline

Definition at line 48 of file qbackingstorerhisupport_p.h.

Referenced by create(), QRhiWidgetPrivate::ensureRhi(), QRhiWidgetPrivate::grabFramebuffer(), QPlatformBackingStore::graphicsDeviceReportedLost(), QQuickWidgetPrivate::initializeWithRhi(), QPlatformBackingStore::rhi(), QPlatformBackingStore::rhiFlush(), and QPlatformBackingStore::toTexture().

+ Here is the caller graph for this function:

◆ setConfig()

void QBackingStoreRhiSupport::setConfig ( const QPlatformBackingStoreRhiConfig & config)
inline

Definition at line 36 of file qbackingstorerhisupport_p.h.

Referenced by QRhiWidgetPrivate::grabFramebuffer(), QQuickWidgetPrivate::initializeWithRhi(), and QPlatformBackingStore::setRhiConfig().

+ Here is the caller graph for this function:

◆ setFormat()

void QBackingStoreRhiSupport::setFormat ( const QSurfaceFormat & format)
inline

Definition at line 34 of file qbackingstorerhisupport_p.h.

Referenced by QQuickWidgetPrivate::initializeWithRhi(), and QPlatformBackingStore::setRhiConfig().

+ Here is the caller graph for this function:

◆ setWindow()

void QBackingStoreRhiSupport::setWindow ( QWindow * window)
inline

Definition at line 35 of file qbackingstorerhisupport_p.h.

References window().

Referenced by QPlatformBackingStore::setRhiConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ surfaceTypeForConfig()

QSurface::SurfaceType QBackingStoreRhiSupport::surfaceTypeForConfig ( const QPlatformBackingStoreRhiConfig & config)
static

◆ swapChainForWindow()

QRhiSwapChain * QBackingStoreRhiSupport::swapChainForWindow ( QWindow * window)

Definition at line 155 of file qbackingstorerhisupport.cpp.

References QPlatformBackingStoreRhiConfig::api(), QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), QRhiSwapChain::createOrResize(), d, QHash< Key, T >::insert(), it, QRhiSwapChain::newCompatibleRenderPassDescriptor(), QRhi::newSwapChain(), QRhiSwapChain::NoVSync, QBackingStoreRhiSupportWindowWatcher, qCDebug, qWarning, QRhiSwapChain::renderPassDescriptor(), QRhiSwapChain::setFlags(), QRhiSwapChain::setRenderPassDescriptor(), QRhiSwapChain::setWindow(), QRhiSwapChain::SurfaceHasNonPreMulAlpha, QPlatformBackingStoreRhiConfig::Vulkan, and window().

Referenced by QPlatformBackingStore::rhiFlush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QBackingStoreRhiSupportWindowWatcher

Definition at line 63 of file qbackingstorerhisupport_p.h.

Referenced by swapChainForWindow().


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