5#include <QCoreApplication>
335void QQuickGraphicsConfiguration::detach()
385 return QRhiVulkanInitParams::preferredInstanceExtensions();
821 if (useDepthBufferFor2D)
825 if (enableDebugLayer)
829 if (enableProfilingRelated)
833 if (preferSoftwareDevice)
840 if (autoPipelineCache)
852 deviceExtensions(
other.deviceExtensions),
854 pipelineCacheSaveFile(
other.pipelineCacheSaveFile),
855 pipelineCacheLoadFile(
other.pipelineCacheLoadFile)
859#ifndef QT_NO_DEBUG_STREAM
864 dbg.nospace() <<
"QQuickGraphicsConfiguration("
866 <<
" flag-isDepthBufferEnabledFor2D=" <<
config.isDepthBufferEnabledFor2D()
867 <<
" flag-isDebugLayerEnabled=" <<
config.isDebugLayerEnabled()
868 <<
" flag-isDebugMarkersEnabled=" <<
config.isDebugMarkersEnabled()
869 <<
" flag-prefersSoftwareDevice=" <<
config.prefersSoftwareDevice()
870 <<
" flag-isAutomaticPipelineCacheEnabled=" <<
config.isAutomaticPipelineCacheEnabled()
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
QString pipelineCacheLoadFile
static QQuickGraphicsConfigurationPrivate * get(QQuickGraphicsConfiguration *p)
QQuickGraphicsConfigurationPrivate()
QByteArrayList deviceExtensions
QString pipelineCacheSaveFile
QQuickGraphicsConfiguration controls lower level graphics settings for the QQuickWindow.
void setPreferSoftwareDevice(bool enable)
Requests choosing an adapter or physical device that uses software-based rasterization.
QString pipelineCacheLoadFile() const
QString pipelineCacheSaveFile() const
void setDepthBufferFor2D(bool enable)
Sets the usage of depth buffer for 2D content to enable.
void setPipelineCacheSaveFile(const QString &filename)
Sets the filename where the QQuickWindow is expected to store its graphics/compute pipeline cache con...
void setAutomaticPipelineCache(bool enable)
Changes the usage of the automatic pipeline cache based on enable.
bool isDebugLayerEnabled() const
void setDeviceExtensions(const QByteArrayList &extensions)
Sets the list of additional extensions to enable on the graphics device (such as, the VkDevice).
void setTimestamps(bool enable)
When enabled, GPU timing data is collected from command buffers on platforms and 3D APIs where this i...
void setPipelineCacheLoadFile(const QString &filename)
Sets the filename where the QQuickWindow is expected to load the initial contents of its graphics/com...
QQuickGraphicsConfiguration & operator=(const QQuickGraphicsConfiguration &other)
void setDebugLayer(bool enable)
Enables the graphics API implementation's debug or validation layers, if available.
bool isAutomaticPipelineCacheEnabled() const
bool isDebugMarkersEnabled() const
static QByteArrayList preferredInstanceExtensions()
bool isDepthBufferEnabledFor2D() const
QQuickGraphicsConfiguration()
Constructs a default QQuickGraphicsConfiguration that does not specify any additional settings for th...
void setDebugMarkers(bool enable)
Where applicable, enable controls inserting debug markers and object names into the graphics command ...
bool prefersSoftwareDevice() const
QByteArrayList deviceExtensions() const
~QQuickGraphicsConfiguration()
Destructor.
bool timestampsEnabled() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
QTextStream & hex(QTextStream &stream)
Calls QTextStream::setIntegerBase(16) on stream and returns stream.
QTextStream & dec(QTextStream &stream)
Calls QTextStream::setIntegerBase(10) on stream and returns stream.
@ AA_DisableShaderDiskCache
QT_WARNING_POP void qAtomicAssign(T *&d, T *x)
This is a helper for the assignment operators of implicitly shared classes.
void qAtomicDetach(T *&d)
This is a helper for the detach method of implicitly shared classes.
QDebug operator<<(QDebug dbg, const QQuickGraphicsConfiguration &config)
QString qEnvironmentVariable(const char *varName, const QString &defaultValue)
Q_CORE_EXPORT bool qEnvironmentVariableIsEmpty(const char *varName) noexcept
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept