Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGShaderDefaultMaterialKeyProperties Struct Reference

#include <qssgrendershaderkeys_p.h>

+ Collaboration diagram for QSSGShaderDefaultMaterialKeyProperties:

Classes

struct  InitVisitor
 
struct  OffsetVisitor
 
struct  StringSizeVisitor
 

Public Types

enum  { LightCount = QSSG_MAX_NUM_LIGHTS }
 
enum  { SingleChannelImageCount = 10 }
 
enum  ImageMapNames {
  DiffuseMap = 0 , EmissiveMap , SpecularMap , BaseColorMap ,
  BumpMap , SpecularAmountMap , NormalMap , ClearcoatNormalMap ,
  OpacityMap , RoughnessMap , MetalnessMap , OcclusionMap ,
  TranslucencyMap , HeightMap , ClearcoatMap , ClearcoatRoughnessMap ,
  TransmissionMap , ThicknessMap , ImageMapCount , SingleChannelImagesFirst = OpacityMap
}
 
enum  ImageChannelNames {
  OpacityChannel = 0 , RoughnessChannel , MetalnessChannel , OcclusionChannel ,
  TranslucencyChannel , HeightChannel , ClearcoatChannel , ClearcoatRoughnessChannel ,
  TransmissionChannel , ThicknessChannel
}
 

Public Member Functions

 QSSGShaderDefaultMaterialKeyProperties ()
 
template<typename TVisitor >
void visitProperties (TVisitor &inVisitor)
 
void init ()
 

Public Attributes

QSSGShaderKeyBoolean m_hasLighting
 
QSSGShaderKeyBoolean m_hasIbl
 
QSSGShaderKeyUnsigned< 4 > m_lightCount
 
QSSGShaderKeyBoolean m_lightFlags [LightCount]
 
QSSGShaderKeyBoolean m_lightSpotFlags [LightCount]
 
QSSGShaderKeyBoolean m_lightAreaFlags [LightCount]
 
QSSGShaderKeyBoolean m_lightShadowFlags [LightCount]
 
QSSGShaderKeyBoolean m_specularEnabled
 
QSSGShaderKeyBoolean m_fresnelEnabled
 
QSSGShaderKeyBoolean m_vertexColorsEnabled
 
QSSGShaderKeySpecularModel m_specularModel
 
QSSGShaderKeyImageMap m_imageMaps [ImageMapCount]
 
QSSGShaderKeyTextureChannel m_textureChannels [SingleChannelImageCount]
 
QSSGShaderKeyUnsigned< 16 > m_boneCount
 
QSSGShaderKeyBoolean m_isDoubleSided
 
QSSGShaderKeyBoolean m_overridesPosition
 
QSSGShaderKeyBoolean m_usesProjectionMatrix
 
QSSGShaderKeyBoolean m_usesInverseProjectionMatrix
 
QSSGShaderKeyBoolean m_usesPointsTopology
 
QSSGShaderKeyBoolean m_usesVarColor
 
QSSGShaderKeyAlphaMode m_alphaMode
 
QSSGShaderKeyVertexAttribute m_vertexAttributes
 
QSSGShaderKeyBoolean m_usesFloatJointIndices
 
qsizetype m_stringBufferSizeHint = 0
 
QSSGShaderKeyBoolean m_usesInstancing
 
QSSGShaderKeyUnsigned< 8 > m_targetCount
 
QSSGShaderKeyUnsigned< 8 > m_targetPositionOffset
 
QSSGShaderKeyUnsigned< 8 > m_targetNormalOffset
 
QSSGShaderKeyUnsigned< 8 > m_targetTangentOffset
 
QSSGShaderKeyUnsigned< 8 > m_targetBinormalOffset
 
QSSGShaderKeyUnsigned< 8 > m_targetTexCoord0Offset
 
QSSGShaderKeyUnsigned< 8 > m_targetTexCoord1Offset
 
QSSGShaderKeyUnsigned< 8 > m_targetColorOffset
 
QSSGShaderKeyBoolean m_blendParticles
 
QSSGShaderKeyBoolean m_clearcoatEnabled
 
QSSGShaderKeyBoolean m_transmissionEnabled
 
QSSGShaderKeyBoolean m_specularAAEnabled
 
QSSGShaderKeyBoolean m_lightmapEnabled
 
QSSGShaderKeyBoolean m_specularGlossyEnabled
 
QSSGShaderKeyUnsigned< 4 > m_debugMode
 
QSSGShaderKeyBoolean m_fogEnabled
 

Detailed Description

Definition at line 497 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
LightCount 

Definition at line 499 of file qssgrendershaderkeys_p.h.

◆ anonymous enum

anonymous enum
Enumerator
SingleChannelImageCount 

Definition at line 502 of file qssgrendershaderkeys_p.h.

◆ ImageChannelNames

Enumerator
OpacityChannel 
RoughnessChannel 
MetalnessChannel 
OcclusionChannel 
TranslucencyChannel 
HeightChannel 
ClearcoatChannel 
ClearcoatRoughnessChannel 
TransmissionChannel 
ThicknessChannel 

Definition at line 529 of file qssgrendershaderkeys_p.h.

◆ ImageMapNames

Enumerator
DiffuseMap 
EmissiveMap 
SpecularMap 
BaseColorMap 
BumpMap 
SpecularAmountMap 
NormalMap 
ClearcoatNormalMap 
OpacityMap 
RoughnessMap 
MetalnessMap 
OcclusionMap 
TranslucencyMap 
HeightMap 
ClearcoatMap 
ClearcoatRoughnessMap 
TransmissionMap 
ThicknessMap 
ImageMapCount 
SingleChannelImagesFirst 

Definition at line 505 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderDefaultMaterialKeyProperties()

QSSGShaderDefaultMaterialKeyProperties::QSSGShaderDefaultMaterialKeyProperties ( )
inline

Definition at line 584 of file qssgrendershaderkeys_p.h.

References init(), m_imageMaps, m_lightAreaFlags, m_lightFlags, m_lightShadowFlags, m_lightSpotFlags, m_textureChannels, and QSSGShaderKeyPropertyBase::name.

+ Here is the call graph for this function:

Member Function Documentation

◆ init()

void QSSGShaderDefaultMaterialKeyProperties::init ( )
inline

Definition at line 820 of file qssgrendershaderkeys_p.h.

References QSSGShaderDefaultMaterialKeyProperties::OffsetVisitor::m_offset, m_stringBufferSizeHint, QSSGShaderDefaultMaterialKeyProperties::InitVisitor::offsetVisitor, Q_ASSERT, QSSGShaderDefaultMaterialKeyProperties::StringSizeVisitor::size, QSSGShaderDefaultMaterialKeyProperties::InitVisitor::stringSizeVisitor, and visitProperties().

Referenced by QSSGShaderDefaultMaterialKeyProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visitProperties()

Member Data Documentation

◆ m_alphaMode

QSSGShaderKeyAlphaMode QSSGShaderDefaultMaterialKeyProperties::m_alphaMode

Definition at line 562 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_blendParticles

◆ m_boneCount

QSSGShaderKeyUnsigned<16> QSSGShaderDefaultMaterialKeyProperties::m_boneCount

◆ m_clearcoatEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_clearcoatEnabled

Definition at line 576 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_debugMode

QSSGShaderKeyUnsigned<4> QSSGShaderDefaultMaterialKeyProperties::m_debugMode

Definition at line 581 of file qssgrendershaderkeys_p.h.

Referenced by generateFragmentShader(), and visitProperties().

◆ m_fogEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_fogEnabled

Definition at line 582 of file qssgrendershaderkeys_p.h.

Referenced by generateFragmentShader(), and visitProperties().

◆ m_fresnelEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_fresnelEnabled

Definition at line 550 of file qssgrendershaderkeys_p.h.

Referenced by maybeAddMaterialFresnel(), and visitProperties().

◆ m_hasIbl

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_hasIbl

◆ m_hasLighting

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_hasLighting

◆ m_imageMaps

QSSGShaderKeyImageMap QSSGShaderDefaultMaterialKeyProperties::m_imageMaps[ImageMapCount]

◆ m_isDoubleSided

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_isDoubleSided

Definition at line 556 of file qssgrendershaderkeys_p.h.

Referenced by generateFragmentShader(), and visitProperties().

◆ m_lightAreaFlags

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_lightAreaFlags[LightCount]

◆ m_lightCount

QSSGShaderKeyUnsigned<4> QSSGShaderDefaultMaterialKeyProperties::m_lightCount

◆ m_lightFlags

◆ m_lightmapEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_lightmapEnabled

Definition at line 579 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_lightShadowFlags

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_lightShadowFlags[LightCount]

◆ m_lightSpotFlags

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_lightSpotFlags[LightCount]

◆ m_overridesPosition

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_overridesPosition

◆ m_specularAAEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_specularAAEnabled

Definition at line 578 of file qssgrendershaderkeys_p.h.

Referenced by generateFragmentShader(), and visitProperties().

◆ m_specularEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_specularEnabled

Definition at line 549 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_specularGlossyEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_specularGlossyEnabled

Definition at line 580 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_specularModel

QSSGShaderKeySpecularModel QSSGShaderDefaultMaterialKeyProperties::m_specularModel

Definition at line 552 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_stringBufferSizeHint

qsizetype QSSGShaderDefaultMaterialKeyProperties::m_stringBufferSizeHint = 0

Definition at line 565 of file qssgrendershaderkeys_p.h.

Referenced by init(), and QSSGShaderDefaultMaterialKey::toString().

◆ m_targetBinormalOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetBinormalOffset

◆ m_targetColorOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetColorOffset

◆ m_targetCount

◆ m_targetNormalOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetNormalOffset

◆ m_targetPositionOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetPositionOffset

◆ m_targetTangentOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetTangentOffset

◆ m_targetTexCoord0Offset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetTexCoord0Offset

◆ m_targetTexCoord1Offset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetTexCoord1Offset

◆ m_textureChannels

◆ m_transmissionEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_transmissionEnabled

Definition at line 577 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_usesFloatJointIndices

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_usesFloatJointIndices

◆ m_usesInstancing

◆ m_usesInverseProjectionMatrix

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_usesInverseProjectionMatrix

◆ m_usesPointsTopology

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_usesPointsTopology

◆ m_usesProjectionMatrix

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_usesProjectionMatrix

◆ m_usesVarColor

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_usesVarColor

◆ m_vertexAttributes

◆ m_vertexColorsEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_vertexColorsEnabled

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