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

#include <qssgrendershaderkeys_p.h>

+ Inheritance diagram for QSSGShaderKeyVertexAttribute:
+ Collaboration diagram for QSSGShaderKeyVertexAttribute:

Public Types

enum  VertexAttributeBits {
  Position = 1 << 0 , Normal = 1 << 1 , TexCoord0 = 1 << 2 , TexCoord1 = 1 << 3 ,
  Tangent = 1 << 4 , Binormal = 1 << 5 , Color = 1 << 6 , JointAndWeight = 1 << 7 ,
  TexCoordLightmap = 1 << 8
}
 
- Public Types inherited from QSSGShaderKeyUnsigned< 9 >
enum  
 

Public Member Functions

 QSSGShaderKeyVertexAttribute (const char *inName="")
 
bool getBitValue (VertexAttributeBits bit, QSSGDataView< quint32 > inKeySet) const
 
void setBitValue (VertexAttributeBits bit, QSSGDataRef< quint32 > inKeySet, bool value) const
 
void toString (QByteArray &ioStr, QSSGDataView< quint32 > inKeySet) const
 
void fromString (const QByteArray &ioStr, QSSGDataRef< quint32 > inKeySet)
 
- Public Member Functions inherited from QSSGShaderKeyUnsigned< 9 >
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

Definition at line 423 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ VertexAttributeBits

Enumerator
Position 
Normal 
TexCoord0 
TexCoord1 
Tangent 
Binormal 
Color 
JointAndWeight 
TexCoordLightmap 

Definition at line 425 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyVertexAttribute()

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

Definition at line 437 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ fromString()

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

Definition at line 473 of file qssgrendershaderkeys_p.h.

References Binormal, QSSGShaderKeyPropertyBase::getBoolValue(), list, QByteArray::mid(), Normal, setBitValue(), QList< T >::size(), Tangent, TexCoord0, TexCoord1, and TexCoordLightmap.

+ Here is the call graph for this function:

◆ getBitValue()

bool QSSGShaderKeyVertexAttribute::getBitValue ( VertexAttributeBits bit,
QSSGDataView< quint32 > inKeySet ) const
inline

Definition at line 439 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< 9 >::getValue().

Referenced by QSSGMaterialVertexPipeline::beginVertexGeneration(), QSSGMaterialVertexPipeline::hasAttributeInKey(), and toString().

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

◆ setBitValue()

void QSSGShaderKeyVertexAttribute::setBitValue ( VertexAttributeBits bit,
QSSGDataRef< quint32 > inKeySet,
bool value ) const
inline

Definition at line 443 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< 9 >::getValue(), and QSSGShaderKeyUnsigned< 9 >::setValue().

Referenced by fromString().

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

◆ toString()

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

Definition at line 450 of file qssgrendershaderkeys_p.h.

References Binormal, getBitValue(), QSSGShaderKeyPropertyBase::internalToString(), JointAndWeight, Normal, Tangent, TexCoord0, TexCoord1, and TexCoordLightmap.

+ Here is the call graph for this function:

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