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>.
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 = 13 }
 
enum  ImageMapNames {
  DiffuseMap = 0 , BumpMap , SpecularMap , NormalMap ,
  ClearcoatNormalMap , OpacityMap , RoughnessMap , MetalnessMap ,
  OcclusionMap , TranslucencyMap , HeightMap , ClearcoatMap ,
  ClearcoatRoughnessMap , TransmissionMap , ThicknessMap , BaseColorMap ,
  SpecularAmountMap , EmissiveMap , ImageMapCount , SingleChannelImagesFirst = OpacityMap
}
 
enum  ImageChannelNames {
  OpacityChannel = 0 , RoughnessChannel , MetalnessChannel , OcclusionChannel ,
  TranslucencyChannel , HeightChannel , ClearcoatChannel , ClearcoatRoughnessChannel ,
  TransmissionChannel , ThicknessChannel , BaseColorChannel , SpecularAmountChannel ,
  EmissiveChannel
}
 

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_fresnelScaleBiasEnabled
 
QSSGShaderKeyBoolean m_clearcoatFresnelScaleBiasEnabled
 
QSSGShaderKeyBoolean m_fresnelEnabled
 
QSSGShaderKeyBoolean m_baseColorSingleChannelEnabled
 
QSSGShaderKeyBoolean m_specularSingleChannelEnabled
 
QSSGShaderKeyBoolean m_emissiveSingleChannelEnabled
 
QSSGShaderKeyBoolean m_invertOpacityMapValue
 
QSSGShaderKeyBoolean m_vertexColorsEnabled
 
QSSGShaderKeyBoolean m_vertexColorsMaskEnabled
 
QSSGShaderKeyUnsigned< 16 > m_vertexColorRedMask
 
QSSGShaderKeyUnsigned< 16 > m_vertexColorGreenMask
 
QSSGShaderKeyUnsigned< 16 > m_vertexColorBlueMask
 
QSSGShaderKeyUnsigned< 16 > m_vertexColorAlphaMask
 
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
 
QSSGShaderKeyUnsigned< 3 > m_viewCount
 
QSSGShaderKeyBoolean m_usesViewIndex
 

Detailed Description

Definition at line 503 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
LightCount 

Definition at line 505 of file qssgrendershaderkeys_p.h.

◆ anonymous enum

anonymous enum
Enumerator
SingleChannelImageCount 

Definition at line 508 of file qssgrendershaderkeys_p.h.

◆ ImageChannelNames

Enumerator
OpacityChannel 
RoughnessChannel 
MetalnessChannel 
OcclusionChannel 
TranslucencyChannel 
HeightChannel 
ClearcoatChannel 
ClearcoatRoughnessChannel 
TransmissionChannel 
ThicknessChannel 
BaseColorChannel 
SpecularAmountChannel 
EmissiveChannel 

Definition at line 535 of file qssgrendershaderkeys_p.h.

◆ ImageMapNames

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

Definition at line 511 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderDefaultMaterialKeyProperties()

QSSGShaderDefaultMaterialKeyProperties::QSSGShaderDefaultMaterialKeyProperties ( )
inline

Definition at line 606 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 868 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 582 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_baseColorSingleChannelEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_baseColorSingleChannelEnabled

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 596 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_clearcoatFresnelScaleBiasEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_clearcoatFresnelScaleBiasEnabled

Definition at line 560 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_debugMode

QSSGShaderKeyUnsigned<4> QSSGShaderDefaultMaterialKeyProperties::m_debugMode

Definition at line 601 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_emissiveSingleChannelEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_emissiveSingleChannelEnabled

Definition at line 564 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_fogEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_fogEnabled

Definition at line 602 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_fresnelEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_fresnelEnabled

Definition at line 561 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_fresnelScaleBiasEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_fresnelScaleBiasEnabled

Definition at line 559 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_hasIbl

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_hasIbl

◆ m_hasLighting

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_hasLighting

◆ m_imageMaps

QSSGShaderKeyImageMap QSSGShaderDefaultMaterialKeyProperties::m_imageMaps[ImageMapCount]

◆ m_invertOpacityMapValue

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_invertOpacityMapValue

Definition at line 565 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_isDoubleSided

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_isDoubleSided

Definition at line 576 of file qssgrendershaderkeys_p.h.

Referenced by 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 599 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 598 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_specularEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_specularEnabled

Definition at line 558 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_specularGlossyEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_specularGlossyEnabled

Definition at line 600 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_specularModel

QSSGShaderKeySpecularModel QSSGShaderDefaultMaterialKeyProperties::m_specularModel

Definition at line 572 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_specularSingleChannelEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_specularSingleChannelEnabled

Definition at line 563 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_stringBufferSizeHint

qsizetype QSSGShaderDefaultMaterialKeyProperties::m_stringBufferSizeHint = 0

Definition at line 585 of file qssgrendershaderkeys_p.h.

Referenced by init().

◆ m_targetBinormalOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetBinormalOffset

◆ m_targetColorOffset

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::m_targetColorOffset

◆ m_targetCount

QSSGShaderKeyUnsigned<8> QSSGShaderDefaultMaterialKeyProperties::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 597 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_usesViewIndex

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_usesViewIndex

◆ m_vertexAttributes

◆ m_vertexColorAlphaMask

QSSGShaderKeyUnsigned<16> QSSGShaderDefaultMaterialKeyProperties::m_vertexColorAlphaMask

Definition at line 571 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_vertexColorBlueMask

QSSGShaderKeyUnsigned<16> QSSGShaderDefaultMaterialKeyProperties::m_vertexColorBlueMask

Definition at line 570 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_vertexColorGreenMask

QSSGShaderKeyUnsigned<16> QSSGShaderDefaultMaterialKeyProperties::m_vertexColorGreenMask

Definition at line 569 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_vertexColorRedMask

QSSGShaderKeyUnsigned<16> QSSGShaderDefaultMaterialKeyProperties::m_vertexColorRedMask

Definition at line 568 of file qssgrendershaderkeys_p.h.

Referenced by visitProperties().

◆ m_vertexColorsEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_vertexColorsEnabled

◆ m_vertexColorsMaskEnabled

QSSGShaderKeyBoolean QSSGShaderDefaultMaterialKeyProperties::m_vertexColorsMaskEnabled

◆ m_viewCount


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