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
QSGRhiShaderMaterialTypeCache Struct Reference
+ Collaboration diagram for QSGRhiShaderMaterialTypeCache:

Classes

struct  Key
 
struct  MaterialType
 

Public Member Functions

QSGMaterialTyperef (const QShader &vs, const QShader &fs)
 
void unref (const QShader &vs, const QShader &fs)
 
void reset ()
 
void clearGraveyard ()
 

Public Attributes

QHash< Key, MaterialTypem_types
 
QHash< Key, QSGMaterialType * > m_graveyard
 

Detailed Description

Definition at line 156 of file qsgrhishadereffectnode.cpp.

Member Function Documentation

◆ clearGraveyard()

void QSGRhiShaderMaterialTypeCache::clearGraveyard ( )
inline

Definition at line 166 of file qsgrhishadereffectnode.cpp.

References m_graveyard, and qDeleteAll().

Referenced by reset().

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

◆ ref()

QSGMaterialType * QSGRhiShaderMaterialTypeCache::ref ( const QShader & vs,
const QShader & fs )

Definition at line 200 of file qsgrhishadereffectnode.cpp.

References it, lock, m_graveyard, m_types, and shaderMaterialTypeCacheMutex.

◆ reset()

void QSGRhiShaderMaterialTypeCache::reset ( )
inline

Definition at line 160 of file qsgrhishadereffectnode.cpp.

References clearGraveyard(), it, and m_types.

+ Here is the call graph for this function:

◆ unref()

void QSGRhiShaderMaterialTypeCache::unref ( const QShader & vs,
const QShader & fs )

Definition at line 223 of file qsgrhishadereffectnode.cpp.

References it, lock, m_graveyard, m_types, and shaderMaterialTypeCacheMutex.

Member Data Documentation

◆ m_graveyard

QHash<Key, QSGMaterialType *> QSGRhiShaderMaterialTypeCache::m_graveyard

Definition at line 190 of file qsgrhishadereffectnode.cpp.

Referenced by clearGraveyard(), ref(), and unref().

◆ m_types

QHash<Key, MaterialType> QSGRhiShaderMaterialTypeCache::m_types

Definition at line 189 of file qsgrhishadereffectnode.cpp.

Referenced by ref(), reset(), and unref().


The documentation for this struct was generated from the following file: