Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsgrhishadereffectnode.cpp File Reference
#include "qsgrhishadereffectnode_p.h"
#include "qsgdefaultrendercontext_p.h"
#include "qsgrhisupport_p.h"
#include <qsgmaterialshader.h>
#include <qsgtextureprovider.h>
#include <private/qsgplaintexture_p.h>
#include <rhi/qshaderdescription.h>
#include <QQmlFile>
#include <QFile>
#include <QFileSelector>
#include <QMutexLocker>
#include "moc_qsgrhishadereffectnode_p.cpp"
+ Include dependency graph for qsgrhishadereffectnode.cpp:

Go to the source code of this file.

Classes

struct  QSGRhiShaderMaterialTypeCache
 
struct  QSGRhiShaderMaterialTypeCache::Key
 
struct  QSGRhiShaderMaterialTypeCache::MaterialType
 
class  QSGRhiShaderEffectMaterialShader
 

Functions

QDebug operator<< (QDebug debug, const QSGRhiShaderLinker::Constant &c)
 
size_t qHash (const QSGRhiShaderMaterialTypeCache::Key &key, size_t seed=0)
 
static QColor qsg_premultiply_color (const QColor &c)
 
template<typename T >
static void fillUniformBlockMember (char *dst, const T *value, int valueCount, int fieldSizeBytes)
 
static bool hasAtlasTexture (const QVector< QSGTextureProvider * > &textureProviders)
 
static QShader loadShaderFromFile (const QString &filename)
 

Variables

static QMutex shaderMaterialTypeCacheMutex
 
static QHash< void *, QSGRhiShaderMaterialTypeCacheshaderMaterialTypeCache
 

Function Documentation

◆ fillUniformBlockMember()

template<typename T >
static void fillUniformBlockMember ( char *  dst,
const T *  value,
int  valueCount,
int  fieldSizeBytes 
)
inlinestatic

Definition at line 268 of file qsgrhishadereffectnode.cpp.

◆ hasAtlasTexture()

static bool hasAtlasTexture ( const QVector< QSGTextureProvider * > &  textureProviders)
static

Definition at line 503 of file qsgrhishadereffectnode.cpp.

Referenced by QSGRhiShaderEffectMaterial::compare().

+ Here is the caller graph for this function:

◆ loadShaderFromFile()

static QShader loadShaderFromFile ( const QString filename)
static

Definition at line 656 of file qsgrhishadereffectnode.cpp.

References QShader::fromSerialized(), qWarning, and QIODeviceBase::ReadOnly.

Referenced by QSGRhiGuiThreadShaderEffectManager::prepareShaderCode(), and QSGRhiShaderEffectNode::syncMaterial().

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

◆ operator<<()

QDebug operator<< ( QDebug  debug,
const QSGRhiShaderLinker::Constant c 
)

Definition at line 145 of file qsgrhishadereffectnode.cpp.

References debug, and QSGShaderEffectNode::VariableData::None.

◆ qHash()

size_t qHash ( const QSGRhiShaderMaterialTypeCache::Key key,
size_t  seed = 0 
)

Definition at line 194 of file qsgrhishadereffectnode.cpp.

References seed.

◆ qsg_premultiply_color()

static QColor qsg_premultiply_color ( const QColor c)
inlinestatic

Definition at line 260 of file qsgrhishadereffectnode.cpp.

References QColor::fromRgbF().

Referenced by QSGRhiShaderEffectMaterialShader::updateUniformData().

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

Variable Documentation

◆ shaderMaterialTypeCache

◆ shaderMaterialTypeCacheMutex