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
QSSGUserShaderAugmentation Class Reference

#include <qssgrendershadercache_p.h>

Collaboration diagram for QSSGUserShaderAugmentation:

Public Types

enum class  FeatureFlags : quint32 {
  None = 0 , BaseColor = (1 << 0) , Roughness = (1 << 1) , Metalness = (1 << 2) ,
  DiffuseLight = (1 << 3) , SpecularLight = (1 << 4) , EmissiveLight = (1 << 5) , WorldNormal = (1 << 6) ,
  WorldTangent = (1 << 7) , WorldBinormal = (1 << 8) , F0 = (1 << 9) , F90 = (1 << 10)
}
using FeatureFlagsType = std::underlying_type_t<FeatureFlags>
using Property = QSSGBaseTypeProperty
using PropertyUniformsList = QVector<Property>

Public Member Functions

void setFeatureFlag (FeatureFlags flag, bool enabledenabled=true)
bool isFeatureFlagSet (FeatureFlags flag) const
bool hasUserAugmentation () const
bool hasPropertyUniforms () const

Public Attributes

QByteArray preamble
QByteArray body
QByteArray hash
FeatureFlagsType featureFlags = 0
QSSGUserShaderFragmentOutputs outputs
PropertyUniformsList propertyUniforms
QSSGShaderDefineList defines

Detailed Description

Definition at line 51 of file qssgrendershadercache_p.h.

Member Typedef Documentation

◆ FeatureFlagsType

Definition at line 74 of file qssgrendershadercache_p.h.

◆ Property

◆ PropertyUniformsList

Member Enumeration Documentation

◆ FeatureFlags

Enumerator
None 
BaseColor 
Roughness 
Metalness 
DiffuseLight 
SpecularLight 
EmissiveLight 
WorldNormal 
WorldTangent 
WorldBinormal 
F0 
F90 

Definition at line 58 of file qssgrendershadercache_p.h.

Member Function Documentation

◆ hasPropertyUniforms()

bool QSSGUserShaderAugmentation::hasPropertyUniforms ( ) const
inline

Definition at line 104 of file qssgrendershadercache_p.h.

◆ hasUserAugmentation()

bool QSSGUserShaderAugmentation::hasUserAugmentation ( ) const
inline

Definition at line 99 of file qssgrendershadercache_p.h.

◆ isFeatureFlagSet()

bool QSSGUserShaderAugmentation::isFeatureFlagSet ( FeatureFlags flag) const
inline

Definition at line 85 of file qssgrendershadercache_p.h.

◆ setFeatureFlag()

void QSSGUserShaderAugmentation::setFeatureFlag ( FeatureFlags flag,
bool enabled = true )
inline

Definition at line 77 of file qssgrendershadercache_p.h.

Member Data Documentation

◆ body

QByteArray QSSGUserShaderAugmentation::body

Definition at line 55 of file qssgrendershadercache_p.h.

◆ defines

QSSGShaderDefineList QSSGUserShaderAugmentation::defines

Definition at line 97 of file qssgrendershadercache_p.h.

◆ featureFlags

FeatureFlagsType QSSGUserShaderAugmentation::featureFlags = 0

Definition at line 75 of file qssgrendershadercache_p.h.

◆ hash

QByteArray QSSGUserShaderAugmentation::hash

Definition at line 56 of file qssgrendershadercache_p.h.

◆ outputs

QSSGUserShaderFragmentOutputs QSSGUserShaderAugmentation::outputs

Definition at line 90 of file qssgrendershadercache_p.h.

◆ preamble

QByteArray QSSGUserShaderAugmentation::preamble

Definition at line 54 of file qssgrendershadercache_p.h.

◆ propertyUniforms

PropertyUniformsList QSSGUserShaderAugmentation::propertyUniforms

Definition at line 95 of file qssgrendershadercache_p.h.


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