5#include <QCoreApplication>
332void QQuickGraphicsConfiguration::detach()
382 return QRhiVulkanInitParams::preferredInstanceExtensions();
864 if (useDepthBufferFor2D)
868 if (enableDebugLayer)
872 if (enableProfilingRelated)
876 if (preferSoftwareDevice)
883 if (autoPipelineCache)
899 deviceExtensions(
other->deviceExtensions),
901 pipelineCacheSaveFile(
other->pipelineCacheSaveFile),
902 pipelineCacheLoadFile(
other->pipelineCacheLoadFile)
906#ifndef QT_NO_DEBUG_STREAM
911 dbg.nospace() <<
"QQuickGraphicsConfiguration("
913 <<
" flag-isDepthBufferEnabledFor2D=" <<
config.isDepthBufferEnabledFor2D()
914 <<
" flag-isDebugLayerEnabled=" <<
config.isDebugLayerEnabled()
915 <<
" flag-isDebugMarkersEnabled=" <<
config.isDebugMarkersEnabled()
916 <<
" flag-prefersSoftwareDevice=" <<
config.prefersSoftwareDevice()
917 <<
" flag-isAutomaticPipelineCacheEnabled=" <<
config.isAutomaticPipelineCacheEnabled()
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
static bool testAttribute(Qt::ApplicationAttribute attribute)
Returns true if attribute attribute is set; otherwise returns false.
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
bool isTimestampsEnabled() 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...
bool isHdrEnabled() const
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.
\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.
#define QByteArrayLiteral(str)
QDebug operator<<(QDebug dbg, const QQuickGraphicsConfiguration &config)
QString qEnvironmentVariable(const char *varName, const QString &defaultValue)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
Q_CORE_EXPORT bool qEnvironmentVariableIsEmpty(const char *varName) noexcept
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept