![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qssgrendershadercache_p.h>
Public Types | |
| enum class | ShaderType { Vertex = 0 , Fragment = 1 } |
| using | InitBakerFunc = void (*)(QShaderBaker *baker, QRhi *rhi) |
Static Public Member Functions | |
| static QByteArray | resourceFolder () |
| static QByteArray | shaderCollectionFile () |
| static QByteArray | particleShaderCollectionFile () |
| static void | initBakerForPersistentUse (QShaderBaker *baker, QRhi *rhi) |
| static QList< QShaderVersion > | glslTargetsForContext (const QSurfaceFormat &formatformat, bool isGLESModule) |
Friends | |
| class | QSSGBuiltInRhiShaderCache |
Definition at line 241 of file qssgrendershadercache_p.h.
| using QSSGShaderCache::InitBakerFunc = void (*)(QShaderBaker *baker, QRhi *rhi) |
Definition at line 251 of file qssgrendershadercache_p.h.
|
strong |
| Enumerator | |
|---|---|
| Vertex | |
| Fragment | |
Definition at line 245 of file qssgrendershadercache_p.h.
| QSSGShaderCache::QSSGShaderCache | ( | QSSGRhiContext & | ctx, |
| const InitBakerFunc | initBakeFn = nullptr ) |
Definition at line 342 of file qssgrendershadercache.cpp.
| QSSGShaderCache::~QSSGShaderCache | ( | ) |
Definition at line 379 of file qssgrendershadercache.cpp.
| QSSGRhiShaderPipelinePtr QSSGShaderCache::compileComputePipeline | ( | const QByteArray & | inKey, |
| const QByteArray & | inComp, | ||
| int | viewCount, | ||
| bool | perTargetCompilation, | ||
| const QByteArray & | inCacheKey = {} ) |
Definition at line 618 of file qssgrendershadercache.cpp.
| QSSGRhiShaderPipelinePtr QSSGShaderCache::compileGraphicsPipeline | ( | const QByteArray & | inKey, |
| const QByteArray & | inVert, | ||
| const QByteArray & | inFrag, | ||
| const QSSGShaderFeatures & | inFeatures, | ||
| QSSGRhiShaderPipeline::StageFlags | stageFlags, | ||
| const QSSGUserShaderAugmentation & | shaderAugmentation, | ||
| int | viewCount, | ||
| bool | perTargetCompilation, | ||
| const QByteArray & | inCacheKey = {} ) |
Definition at line 482 of file qssgrendershadercache.cpp.
|
inline |
Definition at line 316 of file qssgrendershadercache_p.h.
|
static |
Definition at line 140 of file qssgrendershadercache.cpp.
Definition at line 289 of file qssgrendershadercache.cpp.
| QSSGRhiShaderPipelinePtr QSSGShaderCache::newPipelineFromPregenerated | ( | const QByteArray & | inKey, |
| const QSSGShaderFeatures & | inFeatures, | ||
| QQsbCollection::Entry | entry, | ||
| const QSSGRenderGraphObject & | obj, | ||
| QSSGRhiShaderPipeline::StageFlags | stageFlags = {} ) |
Definition at line 702 of file qssgrendershadercache.cpp.
|
static |
Definition at line 477 of file qssgrendershadercache.cpp.
|
inline |
Definition at line 284 of file qssgrendershadercache_p.h.
| void QSSGShaderCache::releaseCachedResources | ( | ) |
Definition at line 385 of file qssgrendershadercache.cpp.
|
static |
Definition at line 467 of file qssgrendershadercache.cpp.
|
inline |
Definition at line 280 of file qssgrendershadercache_p.h.
|
static |
Definition at line 472 of file qssgrendershadercache.cpp.
| QSSGRhiShaderPipelinePtr QSSGShaderCache::tryGetRhiShaderPipeline | ( | const QByteArray & | inKey, |
| const QSSGShaderFeatures & | inFeatures ) |
Definition at line 395 of file qssgrendershadercache.cpp.
| QSSGRhiShaderPipelinePtr QSSGShaderCache::tryNewPipelineFromPersistentCache | ( | const QByteArray & | qsbcKey, |
| const QByteArray & | inKey, | ||
| const QSSGShaderFeatures & | inFeatures, | ||
| QSSGRhiShaderPipeline::StageFlags | stageFlags = {} ) |
Definition at line 771 of file qssgrendershadercache.cpp.
|
friend |
Definition at line 253 of file qssgrendershadercache_p.h.