Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSSGShaderLibraryManager Class Reference

#include <qssgrendershaderlibrarymanager_p.h>

Collaboration diagram for QSSGShaderLibraryManager:

Public Types

typedef QHash< QByteArray, QByteArrayTPathDataMap
typedef QSet< QStringTPathSet

Public Member Functions

 QSSGShaderLibraryManager ()
 ~QSSGShaderLibraryManager ()
void setShaderSource (const QByteArray &inShaderPathKey, QSSGShaderCache::ShaderType type, const QByteArray &inSource, const QSSGCustomShaderMetaData &meta)
void loadPregeneratedShaderInfo ()
void resolveIncludeFiles (QByteArray &theReadBuffer, const QByteArray &inMaterialInfoString)
QByteArray getIncludeContents (const QByteArray &inShaderPathKey)
QByteArray getShaderSource (const QByteArray &inShaderPathKey, QSSGShaderCache::ShaderType type)
QSSGCustomShaderMetaData getShaderMetaData (const QByteArray &inShaderPathKey, QSSGShaderCache::ShaderType type)
void setShaderCodeLibraryVersion (const QByteArray &version)

Static Public Member Functions

static QString getShaderCodeLibraryDirectory ()
static bool compare (const QSSGShaderDefaultMaterialKey &key1, const QSSGShaderDefaultMaterialKey &key2)

Public Attributes

TPathDataMap m_expandedFiles
QHash< QByteArray, QSSGCustomShaderMetaDatam_metadata
QByteArray m_vertShader
QByteArray m_fragShader
QQsbCollection::EntryMap m_preGeneratedShaderEntries
QReadWriteLock m_lock

Detailed Description

Definition at line 69 of file qssgrendershaderlibrarymanager_p.h.

Member Typedef Documentation

◆ TPathDataMap

◆ TPathSet

Constructor & Destructor Documentation

◆ QSSGShaderLibraryManager()

QSSGShaderLibraryManager::QSSGShaderLibraryManager ( )
explicit

Definition at line 26 of file qssgrendershaderlibrarymanager.cpp.

◆ ~QSSGShaderLibraryManager()

QSSGShaderLibraryManager::~QSSGShaderLibraryManager ( )

Definition at line 28 of file qssgrendershaderlibrarymanager.cpp.

Member Function Documentation

◆ compare()

bool QSSGShaderLibraryManager::compare ( const QSSGShaderDefaultMaterialKey & key1,
const QSSGShaderDefaultMaterialKey & key2 )
static

Definition at line 181 of file qssgrendershaderlibrarymanager.cpp.

◆ getIncludeContents()

QByteArray QSSGShaderLibraryManager::getIncludeContents ( const QByteArray & inShaderPathKey)

Definition at line 97 of file qssgrendershaderlibrarymanager.cpp.

◆ getShaderCodeLibraryDirectory()

QT_BEGIN_NAMESPACE QString QSSGShaderLibraryManager::getShaderCodeLibraryDirectory ( )
static

Definition at line 18 of file qssgrendershaderlibrarymanager.cpp.

◆ getShaderMetaData()

QSSGCustomShaderMetaData QSSGShaderLibraryManager::getShaderMetaData ( const QByteArray & inShaderPathKey,
QSSGShaderCache::ShaderType type )

Definition at line 156 of file qssgrendershaderlibrarymanager.cpp.

◆ getShaderSource()

QByteArray QSSGShaderLibraryManager::getShaderSource ( const QByteArray & inShaderPathKey,
QSSGShaderCache::ShaderType type )

Definition at line 143 of file qssgrendershaderlibrarymanager.cpp.

◆ loadPregeneratedShaderInfo()

void QSSGShaderLibraryManager::loadPregeneratedShaderInfo ( )

Definition at line 169 of file qssgrendershaderlibrarymanager.cpp.

◆ resolveIncludeFiles()

void QSSGShaderLibraryManager::resolveIncludeFiles ( QByteArray & theReadBuffer,
const QByteArray & inMaterialInfoString )

Definition at line 66 of file qssgrendershaderlibrarymanager.cpp.

◆ setShaderCodeLibraryVersion()

void QSSGShaderLibraryManager::setShaderCodeLibraryVersion ( const QByteArray & version)

◆ setShaderSource()

void QSSGShaderLibraryManager::setShaderSource ( const QByteArray & inShaderPathKey,
QSSGShaderCache::ShaderType type,
const QByteArray & inSource,
const QSSGCustomShaderMetaData & meta )

Definition at line 43 of file qssgrendershaderlibrarymanager.cpp.

Member Data Documentation

◆ m_expandedFiles

TPathDataMap QSSGShaderLibraryManager::m_expandedFiles

Definition at line 76 of file qssgrendershaderlibrarymanager_p.h.

◆ m_fragShader

QByteArray QSSGShaderLibraryManager::m_fragShader

Definition at line 79 of file qssgrendershaderlibrarymanager_p.h.

◆ m_lock

QReadWriteLock QSSGShaderLibraryManager::m_lock

Definition at line 83 of file qssgrendershaderlibrarymanager_p.h.

◆ m_metadata

QHash<QByteArray, QSSGCustomShaderMetaData> QSSGShaderLibraryManager::m_metadata

Definition at line 77 of file qssgrendershaderlibrarymanager_p.h.

◆ m_preGeneratedShaderEntries

QQsbCollection::EntryMap QSSGShaderLibraryManager::m_preGeneratedShaderEntries

Definition at line 81 of file qssgrendershaderlibrarymanager_p.h.

◆ m_vertShader

QByteArray QSSGShaderLibraryManager::m_vertShader

Definition at line 78 of file qssgrendershaderlibrarymanager_p.h.


The documentation for this class was generated from the following files: