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

#include <qssgrendershaderkeys_p.h>

+ Inheritance diagram for QSSGShaderKeySpecularModel:
+ Collaboration diagram for QSSGShaderKeySpecularModel:

Public Member Functions

 QSSGShaderKeySpecularModel (const char *inName="")
 
void setSpecularModel (QSSGDataRef< quint32 > inKeySet, QSSGRenderDefaultMaterial::MaterialSpecularModel inModel)
 
QSSGRenderDefaultMaterial::MaterialSpecularModel getSpecularModel (QSSGDataView< quint32 > inKeySet) const
 
void toString (QByteArray &ioStr, QSSGDataView< quint32 > inKeySet) const
 
void fromString (const QByteArray &ioStr, QSSGDataRef< quint32 > inKeySet)
 
- Public Member Functions inherited from QSSGShaderKeyUnsigned< 2 >
constexpr QSSGShaderKeyUnsigned (const char *inName="")
 
quint32 getMask () const
 
void setValue (QSSGDataRef< quint32 > inDataStore, quint32 inValue) const
 
quint32 getValue (QSSGDataView< quint32 > inDataStore) const
 
void toString (QByteArray &ioStr, QSSGDataView< quint32 > inKeySet) const
 
void fromString (const QByteArray &ioStr, QSSGDataRef< quint32 > inKeySet)
 
- Public Member Functions inherited from QSSGShaderKeyPropertyBase
constexpr QSSGShaderKeyPropertyBase (const char *inName="")
 
quint32 getOffset () const
 
void setOffset (quint32 of)
 
template<quint32 TBitWidth>
quint32 getMaskTemplate () const
 
quint32 getIdx () const
 

Additional Inherited Members

- Public Types inherited from QSSGShaderKeyUnsigned< 2 >
enum  
 
- Public Attributes inherited from QSSGShaderKeyPropertyBase
QByteArrayView name
 
quint32 offset
 
- Protected Member Functions inherited from QSSGShaderKeyPropertyBase
void internalToString (QByteArray &ioStr, const QByteArrayView &inBuffer) const
 
- Static Protected Member Functions inherited from QSSGShaderKeyPropertyBase
static void internalToString (QByteArray &ioStr, const QByteArrayView &name, bool inValue)
 
static bool getBoolValue (const QByteArray &str, const QByteArrayView &name)
 

Detailed Description

Definition at line 309 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeySpecularModel()

QSSGShaderKeySpecularModel::QSSGShaderKeySpecularModel ( const char *  inName = "")
inlineexplicit

Definition at line 311 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ fromString()

void QSSGShaderKeySpecularModel::fromString ( const QByteArray ioStr,
QSSGDataRef< quint32 inKeySet 
)
inline

Definition at line 337 of file qssgrendershaderkeys_p.h.

References QSSGRenderDefaultMaterial::Default, QByteArray::indexOf(), QSSGRenderDefaultMaterial::KGGX, QByteArray::mid(), and setSpecularModel().

+ Here is the call graph for this function:

◆ getSpecularModel()

QSSGRenderDefaultMaterial::MaterialSpecularModel QSSGShaderKeySpecularModel::getSpecularModel ( QSSGDataView< quint32 inKeySet) const
inline

Definition at line 318 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< 2 >::getValue().

Referenced by toString().

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

◆ setSpecularModel()

void QSSGShaderKeySpecularModel::setSpecularModel ( QSSGDataRef< quint32 inKeySet,
QSSGRenderDefaultMaterial::MaterialSpecularModel  inModel 
)
inline

Definition at line 313 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< 2 >::setValue().

Referenced by fromString().

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

◆ toString()

void QSSGShaderKeySpecularModel::toString ( QByteArray ioStr,
QSSGDataView< quint32 inKeySet 
) const
inline

Definition at line 323 of file qssgrendershaderkeys_p.h.

References QByteArray::append(), QSSGRenderDefaultMaterial::Default, getSpecularModel(), and QSSGRenderDefaultMaterial::KGGX.

+ Here is the call graph for this function:

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