Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsgrhisupport.cpp File Reference
#include "qsgrhisupport_p.h"
#include "qsgcontext_p.h"
#include "qsgdefaultrendercontext_p.h"
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qquickwindow_p.h>
#include <QtGui/qwindow.h>
#include <QOperatingSystemVersion>
#include <QLockFile>
#include <QSaveFile>
#include <QStandardPaths>
#include <QDir>
#include <QFileInfo>
#include <QSysInfo>
#include <QOffscreenSurface>
#include <memory>
+ Include dependency graph for qsgrhisupport.cpp:

Go to the source code of this file.

Functions

static bool ensureWritableDir (const QString &name)
 
static QString automaticPipelineCacheDir ()
 
static QString automaticPipelineCacheFileName (QRhi *rhi)
 
static bool isAutomaticPipelineCacheLoadSkippedForWindow (Qt::WindowFlags wflags)
 
static bool isAutomaticPipelineCacheSaveSkippedForWindow (Qt::WindowFlags wflags)
 
static QString pipelineCacheLockFileName (const QString &name)
 

Function Documentation

◆ automaticPipelineCacheDir()

static QString automaticPipelineCacheDir ( )
static

Definition at line 927 of file qsgrhisupport.cpp.

References QSysInfo::buildAbi(), QStandardPaths::CacheLocation, ensureWritableDir(), QString::isEmpty(), subPath(), and QStandardPaths::writableLocation().

Referenced by automaticPipelineCacheFileName().

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

◆ automaticPipelineCacheFileName()

static QString automaticPipelineCacheFileName ( QRhi rhi)
inlinestatic

Definition at line 954 of file qsgrhisupport.cpp.

References automaticPipelineCacheDir(), QRhi::backendName(), QString::fromLatin1(), QString::isEmpty(), and QString::toLower().

+ Here is the call graph for this function:

◆ ensureWritableDir()

static bool ensureWritableDir ( const QString name)
inlinestatic

Definition at line 921 of file qsgrhisupport.cpp.

References QFileInfo::isWritable(), QDir::mkpath(), and QDir::root().

Referenced by automaticPipelineCacheDir().

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

◆ isAutomaticPipelineCacheLoadSkippedForWindow()

static bool isAutomaticPipelineCacheLoadSkippedForWindow ( Qt::WindowFlags  wflags)
inlinestatic

Definition at line 963 of file qsgrhisupport.cpp.

References Qt::SplashScreen, and Qt::ToolTip.

◆ isAutomaticPipelineCacheSaveSkippedForWindow()

static bool isAutomaticPipelineCacheSaveSkippedForWindow ( Qt::WindowFlags  wflags)
inlinestatic

Definition at line 968 of file qsgrhisupport.cpp.

References Qt::Dialog, and Qt::Popup.

Referenced by QSGRhiSupport::createRhi().

+ Here is the caller graph for this function:

◆ pipelineCacheLockFileName()

static QString pipelineCacheLockFileName ( const QString name)
inlinestatic

Definition at line 974 of file qsgrhisupport.cpp.