![]() |
Qt 6.x
The Qt SDK
|
#include <qbackingstorerhisupport_p.h>
Public Member Functions | |
~QBackingStoreRhiSupport () | |
void | reset () |
void | setFormat (const QSurfaceFormat &format) |
void | setWindow (QWindow *window) |
void | setConfig (const QPlatformBackingStoreRhiConfig &config) |
bool | create () |
QRhiSwapChain * | swapChainForWindow (QWindow *window) |
QRhi * | rhi () 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 |
Definition at line 27 of file qbackingstorerhisupport_p.h.
QT_BEGIN_NAMESPACE QBackingStoreRhiSupport::~QBackingStoreRhiSupport | ( | ) |
Definition at line 21 of file qbackingstorerhisupport.cpp.
|
static |
Definition at line 218 of file qbackingstorerhisupport.cpp.
References QPlatformBackingStoreRhiConfig::D3D11, QRhi::D3D11, QPlatformBackingStoreRhiConfig::D3D12, QRhi::D3D12, QPlatformBackingStoreRhiConfig::Metal, QRhi::Metal, QPlatformBackingStoreRhiConfig::Null, QRhi::Null, QPlatformBackingStoreRhiConfig::OpenGL, QRhi::OpenGLES2, QPlatformBackingStoreRhiConfig::Vulkan, and QRhi::Vulkan.
Referenced by checkForceRhi(), and QQuickWidgetPrivate::initializeWithRhi().
|
static |
Definition at line 239 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().
bool QBackingStoreRhiSupport::create | ( | ) |
Definition at line 48 of file qbackingstorerhisupport.cpp.
References QPlatformBackingStoreRhiConfig::api(), QRhi::create(), QPlatformBackingStoreRhiConfig::D3D11, QRhi::D3D11, QPlatformBackingStoreRhiConfig::D3D12, QRhi::D3D12, QWindow::format(), QPlatformBackingStoreRhiConfig::isDebugLayerEnabled(), QPlatformBackingStoreRhiConfig::Metal, QRhi::Metal, QPlatformBackingStoreRhiConfig::OpenGL, QRhi::OpenGLES2, QGuiApplicationPrivate::platformIntegration(), QRhi::PreferSoftwareRenderer, QRhi::probe(), qCDebug, qt_gl_global_share_context(), qWarning, rhi(), QPlatformIntegration::RhiBasedRendering, QPlatformBackingStoreRhiConfig::Vulkan, and QRhi::Vulkan.
Referenced by QPlatformBackingStore::graphicsDeviceReportedLost(), QQuickWidgetPrivate::initializeWithRhi(), and QPlatformBackingStore::setRhiConfig().
void QBackingStoreRhiSupport::reset | ( | ) |
Definition at line 34 of file qbackingstorerhisupport.cpp.
References QHash< Key, T >::clear(), and d.
Referenced by QQuickWidgetPrivate::destroy(), and QPlatformBackingStore::graphicsDeviceReportedLost().
|
inline |
Definition at line 48 of file qbackingstorerhisupport_p.h.
Referenced by create(), QPlatformBackingStore::graphicsDeviceReportedLost(), QQuickWidgetPrivate::initializeWithRhi(), QPlatformBackingStore::rhi(), QPlatformBackingStore::rhiFlush(), and QPlatformBackingStore::toTexture().
|
inline |
Definition at line 36 of file qbackingstorerhisupport_p.h.
Referenced by QQuickWidgetPrivate::initializeWithRhi(), and QPlatformBackingStore::setRhiConfig().
|
inline |
Definition at line 34 of file qbackingstorerhisupport_p.h.
Referenced by QQuickWidgetPrivate::initializeWithRhi(), and QPlatformBackingStore::setRhiConfig().
Definition at line 35 of file qbackingstorerhisupport_p.h.
References window().
Referenced by QPlatformBackingStore::setRhiConfig().
|
static |
Definition at line 195 of file qbackingstorerhisupport.cpp.
References QPlatformBackingStoreRhiConfig::D3D11, QPlatformBackingStoreRhiConfig::D3D12, QSurface::Direct3DSurface, QPlatformBackingStoreRhiConfig::Metal, QSurface::MetalSurface, QPlatformBackingStoreRhiConfig::OpenGL, QSurface::OpenGLSurface, QSurface::RasterSurface, QPlatformBackingStoreRhiConfig::Vulkan, and QSurface::VulkanSurface.
Referenced by checkForceRhi(), and q_evaluateRhiConfigRecursive().
QRhiSwapChain * QBackingStoreRhiSupport::swapChainForWindow | ( | QWindow * | window | ) |
Definition at line 136 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::setFlags(), QRhiSwapChain::setRenderPassDescriptor(), QRhiSwapChain::setWindow(), QRhiSwapChain::SurfaceHasNonPreMulAlpha, QPlatformBackingStoreRhiConfig::Vulkan, and window().
Referenced by QPlatformBackingStore::rhiFlush().
|
friend |
Definition at line 63 of file qbackingstorerhisupport_p.h.
Referenced by swapChainForWindow().