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
QSSGShaderKeyBoolean Struct Reference

#include <qssgrendershaderkeys_p.h>

+ Inheritance diagram for QSSGShaderKeyBoolean:
+ Collaboration diagram for QSSGShaderKeyBoolean:

Public Types

enum  { BitWidth = 1 }
 

Public Member Functions

constexpr QSSGShaderKeyBoolean (const char *inName="")
 
quint32 getMask () const
 
void setValue (QSSGDataRef< quint32 > inDataStore, bool inValue) const
 
bool 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

Definition at line 82 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
BitWidth 

Definition at line 84 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyBoolean()

constexpr QSSGShaderKeyBoolean::QSSGShaderKeyBoolean ( const char * inName = "")
inlineexplicitconstexpr

Definition at line 88 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ fromString()

void QSSGShaderKeyBoolean::fromString ( const QByteArray & ioStr,
QSSGDataRef< quint32 > inKeySet )
inline

Definition at line 119 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyPropertyBase::getBoolValue(), and setValue().

+ Here is the call graph for this function:

◆ getMask()

quint32 QSSGShaderKeyBoolean::getMask ( ) const
inline

Definition at line 90 of file qssgrendershaderkeys_p.h.

Referenced by getValue(), and setValue().

+ Here is the caller graph for this function:

◆ getValue()

bool QSSGShaderKeyBoolean::getValue ( QSSGDataView< quint32 > inDataStore) const
inline

Definition at line 106 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyPropertyBase::getIdx(), and getMask().

Referenced by QSSGMaterialVertexPipeline::beginVertexGeneration(), calcLightPoint(), QSSGMaterialVertexPipeline::doGenerateVarBinormal(), QSSGMaterialVertexPipeline::doGenerateVarTangent(), QSSGMaterialVertexPipeline::doGenerateWorldNormal(), QSSGMaterialVertexPipeline::generateShadowWorldPosition(), QSSGMaterialVertexPipeline::generateVertexColor(), QSSGMaterialVertexPipeline::generateWorldPosition(), and toString().

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

◆ setValue()

void QSSGShaderKeyBoolean::setValue ( QSSGDataRef< quint32 > inDataStore,
bool inValue ) const
inline

Definition at line 91 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyPropertyBase::getIdx(), getMask(), and Q_ASSERT.

Referenced by fromString(), QSSGLayerRenderData::generateLightingKey(), and QSSGLayerRenderData::prepareModelsForRender().

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

◆ toString()

void QSSGShaderKeyBoolean::toString ( QByteArray & ioStr,
QSSGDataView< quint32 > inKeySet ) const
inline

Definition at line 114 of file qssgrendershaderkeys_p.h.

References getValue(), and QSSGShaderKeyPropertyBase::internalToString().

+ Here is the call graph for this function:

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