Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 474 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ VertexAttributeBits

Enumerator
Position 
Normal 
TexCoord0 
TexCoord1 
Tangent 
Binormal 
Color 
JointAndWeight 
TexCoordLightmap 

Definition at line 476 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyVertexAttribute()

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

Definition at line 488 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ fromString()

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

Definition at line 524 of file qssgrendershaderkeys_p.h.

◆ getBitValue()

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

Definition at line 490 of file qssgrendershaderkeys_p.h.

◆ setBitValue()

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

Definition at line 494 of file qssgrendershaderkeys_p.h.

◆ toString()

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

Definition at line 501 of file qssgrendershaderkeys_p.h.


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