![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrendershadercache_p.h>
Collaboration diagram for QSSGShaderFeatures:Public Types | |
| enum class | Feature : FlagType { LightProbe = (1 << 8) , IblOrientation = (1 << 9) + 1 , Ssm = (1 << 10) + 2 , Ssao = (1 << 11) + 3 , DepthPass = (1 << 12) + 4 , OrthoShadowPass = (1 << 13) + 5 , CubeShadowPass = (1 << 14) + 6 , LinearTonemapping = (1 << 15) + 7 , AcesTonemapping = (1 << 16) + 8 , HejlDawsonTonemapping = (1 << 17) + 9 , FilmicTonemapping = (1 << 18) + 10 , RGBELightProbe = (1 << 19) + 11 , OpaqueDepthPrePass = (1 << 20) + 12 , ReflectionProbe = (1 << 21) + 13 , ReduceMaxNumLights = (1 << 22) + 14 , Lightmap = (1 << 23) + 15 , LastFeature } |
| using | FlagType = quint32 |
Public Member Functions | |
| constexpr bool | isNull () const |
| constexpr bool | isSet (Feature feature) const |
| void | set (Feature feature, bool val) |
| void | disableTonemapping () |
Static Public Member Functions | |
| static const char * | asDefineString (QSSGShaderFeatures::Feature feature) |
| static Feature | fromIndex (quint32 idx) |
Public Attributes | |
| FlagType | flags = 0 |
Static Public Attributes | |
| static constexpr FlagType | IndexMask = 0xff |
| static constexpr quint32 | Count = (static_cast<FlagType>(Feature::LastFeature) & IndexMask) |
Friends | |
| bool | operator== (QSSGShaderFeatures a, QSSGShaderFeatures b) |
| QDebug | operator<< (QDebug stream, const QSSGShaderFeatures &features) |
Definition at line 37 of file qssgrendershadercache_p.h.
| using QSSGShaderFeatures::FlagType = quint32 |
Definition at line 64 of file qssgrendershadercache_p.h.
|
strong |
Definition at line 65 of file qssgrendershadercache_p.h.
|
static |
Definition at line 83 of file qssgrendershadercache.cpp.
References DefineTable, and IndexMask.
|
inline |
Definition at line 101 of file qssgrendershadercache_p.h.
References set.
Referenced by ScreenMapPass::renderPrep(), and RenderHelpers::rhiPrepareRenderable().
Here is the caller graph for this function:
|
static |
Definition at line 84 of file qssgrendershadercache.cpp.
References DefineTable, and DefineEntry::feature.
|
inlineconstexpr |
Definition at line 93 of file qssgrendershadercache_p.h.
|
inlineconstexpr |
Definition at line 94 of file qssgrendershadercache_p.h.
Referenced by QSSGMaterialVertexPipeline::beginVertexGeneration(), effectiveMaxLightCount(), generateFragmentShader(), RenderHelpers::rhiPrepareRenderable(), and QSSGCustomMaterialSystem::rhiPrepareRenderable().
Here is the caller graph for this function:| void QSSGShaderFeatures::set | ( | QSSGShaderFeatures::Feature | feature, |
| bool | val | ||
| ) |
Definition at line 86 of file qssgrendershadercache.cpp.
References IndexMask.
Referenced by QSSGLayerRenderData::prepareForRender(), RenderHelpers::rhiPrepareDepthPass(), RenderHelpers::rhiPrepareRenderable(), rhiPrepareResourcesForShadowMap(), and QSSGRenderer::setTonemapFeatures().
Here is the caller graph for this function:
|
friend |
Definition at line 109 of file qssgrendershadercache_p.h.
|
friend |
Definition at line 99 of file qssgrendershadercache_p.h.
|
staticconstexpr |
Definition at line 88 of file qssgrendershadercache_p.h.
| FlagType QSSGShaderFeatures::flags = 0 |
Definition at line 97 of file qssgrendershadercache_p.h.
|
staticconstexpr |
Definition at line 87 of file qssgrendershadercache_p.h.
Referenced by asDefineString(), qHash(), and set().