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
QSSGShaderFeatures Struct Reference

#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 , PerspectiveShadowPass = (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 , NormalPass = (1 << 26) + 18 , 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)

Detailed Description

Definition at line 38 of file qssgrendershadercache_p.h.

Member Typedef Documentation

◆ FlagType

Member Enumeration Documentation

◆ Feature

Enumerator
LightProbe 
IblOrientation 
Ssm 
Ssao 
DepthPass 
OrthoShadowPass 
PerspectiveShadowPass 
LinearTonemapping 
AcesTonemapping 
HejlDawsonTonemapping 
FilmicTonemapping 
RGBELightProbe 
OpaqueDepthPrePass 
ReflectionProbe 
ReduceMaxNumLights 
Lightmap 
DisableMultiView 
ForceIblExposure 
NormalPass 
LastFeature 

Definition at line 66 of file qssgrendershadercache_p.h.

Member Function Documentation

◆ asDefineString()

const char * QSSGShaderFeatures::asDefineString ( QSSGShaderFeatures::Feature feature)
static

Definition at line 86 of file qssgrendershadercache.cpp.

◆ disableTonemapping()

void QSSGShaderFeatures::disableTonemapping ( )
inline

Definition at line 105 of file qssgrendershadercache_p.h.

◆ fromIndex()

QSSGShaderFeatures::Feature QSSGShaderFeatures::fromIndex ( quint32 idx)
static

Definition at line 87 of file qssgrendershadercache.cpp.

◆ isNull()

bool QSSGShaderFeatures::isNull ( ) const
inlineconstexpr

Definition at line 97 of file qssgrendershadercache_p.h.

◆ isSet()

bool QSSGShaderFeatures::isSet ( Feature feature) const
inlineconstexpr

Definition at line 98 of file qssgrendershadercache_p.h.

◆ set()

void QSSGShaderFeatures::set ( QSSGShaderFeatures::Feature feature,
bool val )

Definition at line 89 of file qssgrendershadercache.cpp.

◆ operator<<

QDebug operator<< ( QDebug stream,
const QSSGShaderFeatures & features )
friend

Definition at line 114 of file qssgrendershadercache_p.h.

◆ operator==

bool operator== ( QSSGShaderFeatures a,
QSSGShaderFeatures b )
friend

Definition at line 103 of file qssgrendershadercache_p.h.

Member Data Documentation

◆ Count

quint32 QSSGShaderFeatures::Count = (static_cast<FlagType>(Feature::LastFeature) & IndexMask)
staticconstexpr

Definition at line 92 of file qssgrendershadercache_p.h.

◆ flags

FlagType QSSGShaderFeatures::flags = 0

Definition at line 101 of file qssgrendershadercache_p.h.

◆ IndexMask

FlagType QSSGShaderFeatures::IndexMask = 0xff
staticconstexpr

Definition at line 91 of file qssgrendershadercache_p.h.


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