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

#include <qssgrendershaderkeys_p.h>

Inheritance diagram for QSSGShaderKeyTextureChannel:
Collaboration diagram for QSSGShaderKeyTextureChannel:

Public Types

enum  TexturChannelBits { R = 0 , G = 1 , B = 2 , A = 3 }
Public Types inherited from QSSGShaderKeyUnsigned< 2 >
enum  

Public Member Functions

 QSSGShaderKeyTextureChannel (const char *inName="")
TexturChannelBits getTextureChannel (QSSGDataView< quint32 > inKeySet) const
void setTextureChannel (TexturChannelBits channel, QSSGDataRef< quint32 > inKeySet)
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

Static Public Attributes

static constexpr char textureChannelToChar [4]

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 195 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ TexturChannelBits

Enumerator

Definition at line 197 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyTextureChannel()

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

Definition at line 203 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ fromString()

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

Definition at line 226 of file qssgrendershaderkeys_p.h.

References A, B, G, and R.

◆ getTextureChannel()

TexturChannelBits QSSGShaderKeyTextureChannel::getTextureChannel ( QSSGDataView< quint32 > inKeySet) const
inline

Definition at line 205 of file qssgrendershaderkeys_p.h.

◆ setTextureChannel()

void QSSGShaderKeyTextureChannel::setTextureChannel ( TexturChannelBits channel,
QSSGDataRef< quint32 > inKeySet )
inline

Definition at line 210 of file qssgrendershaderkeys_p.h.

◆ toString()

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

Definition at line 220 of file qssgrendershaderkeys_p.h.

Member Data Documentation

◆ textureChannelToChar

char QSSGShaderKeyTextureChannel::textureChannelToChar[4]
staticconstexpr
Initial value:
= {
'R',
'G',
'B',
'A'
}

Definition at line 214 of file qssgrendershaderkeys_p.h.


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