Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgrhishadereffectnode.cpp File Reference

(2f2345ee4e4af5bfe7749b24b8e85f30ccd97316)

#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
 
struct  QSGRhiShaderEffectDefaultShader
 

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 275 of file qsgrhishadereffectnode.cpp.

◆ hasAtlasTexture()

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

Definition at line 529 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 682 of file qsgrhishadereffectnode.cpp.

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

Referenced by QSGRhiShaderEffectDefaultShader::create(), and QSGRhiGuiThreadShaderEffectManager::prepareShaderCode().

+ 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 144 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 193 of file qsgrhishadereffectnode.cpp.

References seed.

◆ qsg_premultiply_color()

static QColor qsg_premultiply_color ( const QColor & c)
inlinestatic

Definition at line 267 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