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>.
|
#include <qssgrendershadercache_p.h>
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 , DisableMultiView = (1 << 24) + 16 , ForceIblExposure = (1 << 25) + 17 , 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 38 of file qssgrendershadercache_p.h.
using QSSGShaderFeatures::FlagType = quint32 |
Definition at line 65 of file qssgrendershadercache_p.h.
|
strong |
Definition at line 66 of file qssgrendershadercache_p.h.
|
static |
Definition at line 85 of file qssgrendershadercache.cpp.
References DefineTable, and IndexMask.
|
inline |
Definition at line 104 of file qssgrendershadercache_p.h.
References set.
Referenced by ScreenMapPass::renderPrep(), and RenderHelpers::rhiPrepareRenderable().
|
static |
Definition at line 86 of file qssgrendershadercache.cpp.
References DefineTable.
|
inlineconstexpr |
Definition at line 96 of file qssgrendershadercache_p.h.
|
inlineconstexpr |
Definition at line 97 of file qssgrendershadercache_p.h.
Referenced by effectiveMaxLightCount(), generateFragmentShader(), QSSGLayerRenderData::prepareForRender(), RenderHelpers::rhiPrepareRenderable(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), and QSSGCustomMaterialSystem::shadersForCustomMaterial().
void QSSGShaderFeatures::set | ( | QSSGShaderFeatures::Feature | feature, |
bool | val ) |
Definition at line 88 of file qssgrendershadercache.cpp.
References IndexMask.
Referenced by QSSGLayerRenderData::prepareForRender(), RenderHelpers::rhiPrepareDepthPass(), RenderHelpers::rhiPrepareRenderable(), rhiPrepareResourcesForReflectionMap(), rhiPrepareResourcesForShadowMap(), and QSSGLayerRenderData::setTonemapFeatures().
|
friend |
Definition at line 113 of file qssgrendershadercache_p.h.
|
friend |
Definition at line 102 of file qssgrendershadercache_p.h.
|
staticconstexpr |
Definition at line 91 of file qssgrendershadercache_p.h.
FlagType QSSGShaderFeatures::flags = 0 |
Definition at line 100 of file qssgrendershadercache_p.h.
|
staticconstexpr |
Definition at line 90 of file qssgrendershadercache_p.h.
Referenced by asDefineString(), qHash(), and set().