Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGShaderKeyUnsigned< TBitWidth > Struct Template Reference

#include <qssgrendershaderkeys_p.h>

+ Inheritance diagram for QSSGShaderKeyUnsigned< TBitWidth >:
+ Collaboration diagram for QSSGShaderKeyUnsigned< TBitWidth >:

Public Types

enum  { BitWidth = TBitWidth }
 

Public Member Functions

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 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

template<quint32 TBitWidth>
struct QSSGShaderKeyUnsigned< TBitWidth >

Definition at line 126 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ anonymous enum

template<quint32 TBitWidth>
anonymous enum
Enumerator
BitWidth 

Definition at line 128 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyUnsigned()

template<quint32 TBitWidth>
constexpr QSSGShaderKeyUnsigned< TBitWidth >::QSSGShaderKeyUnsigned ( const char *  inName = "")
inlineexplicitconstexpr

Definition at line 131 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ fromString()

template<quint32 TBitWidth>
void QSSGShaderKeyUnsigned< TBitWidth >::fromString ( const QByteArray ioStr,
QSSGDataRef< quint32 inKeySet 
)
inline

Definition at line 170 of file qssgrendershaderkeys_p.h.

References i, QByteArray::indexOf(), isDigit(), QByteArray::right(), QSSGShaderKeyUnsigned< TBitWidth >::setValue(), and QByteArray::size().

+ Here is the call graph for this function:

◆ getMask()

template<quint32 TBitWidth>
quint32 QSSGShaderKeyUnsigned< TBitWidth >::getMask ( ) const
inline

Definition at line 132 of file qssgrendershaderkeys_p.h.

Referenced by QSSGShaderKeyUnsigned< TBitWidth >::getValue(), and QSSGShaderKeyUnsigned< TBitWidth >::setValue().

+ Here is the caller graph for this function:

◆ getValue()

template<quint32 TBitWidth>
quint32 QSSGShaderKeyUnsigned< TBitWidth >::getValue ( QSSGDataView< quint32 inDataStore) const
inline

Definition at line 149 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyPropertyBase::getIdx(), and QSSGShaderKeyUnsigned< TBitWidth >::getMask().

Referenced by QSSGMaterialVertexPipeline::beginVertexGeneration(), generateFragmentShader(), QSSGMaterialShaderGenerator::setRhiMaterialProperties(), and QSSGShaderKeyUnsigned< TBitWidth >::toString().

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

◆ setValue()

template<quint32 TBitWidth>
void QSSGShaderKeyUnsigned< TBitWidth >::setValue ( QSSGDataRef< quint32 inDataStore,
quint32  inValue 
) const
inline

Definition at line 133 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyPropertyBase::getIdx(), and QSSGShaderKeyUnsigned< TBitWidth >::getMask().

Referenced by QSSGShaderKeyUnsigned< TBitWidth >::fromString(), QSSGLayerRenderData::generateLightingKey(), QSSGLayerRenderData::prepareModelsForRender(), and QSSGLayerRenderData::setVertexInputPresence().

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

◆ toString()

template<quint32 TBitWidth>
void QSSGShaderKeyUnsigned< TBitWidth >::toString ( QByteArray ioStr,
QSSGDataView< quint32 inKeySet 
) const
inline

Definition at line 161 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< TBitWidth >::getValue(), QSSGShaderKeyPropertyBase::internalToString(), and toDataRef().

+ Here is the call graph for this function:

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