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

#include <qssgrendershaderkeys_p.h>

+ Inheritance diagram for QSSGShaderKeyPropertyBase:
+ Collaboration diagram for QSSGShaderKeyPropertyBase:

Public Member Functions

constexpr QSSGShaderKeyPropertyBase (const char *inName="")
 
quint32 getOffset () const
 
void setOffset (quint32 of)
 
template<quint32 TBitWidth>
quint32 getMaskTemplate () const
 
quint32 getIdx () const
 

Public Attributes

QByteArrayView name
 
quint32 offset
 

Protected Member Functions

void internalToString (QByteArray &ioStr, const QByteArrayView &inBuffer) const
 

Static Protected Member Functions

static void internalToString (QByteArray &ioStr, const QByteArrayView &name, bool inValue)
 
static bool getBoolValue (const QByteArray &str, const QByteArrayView &name)
 

Detailed Description

Definition at line 33 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyPropertyBase()

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

Definition at line 37 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ getBoolValue()

static bool QSSGShaderKeyPropertyBase::getBoolValue ( const QByteArray & str,
const QByteArrayView & name )
inlinestaticprotected

Definition at line 68 of file qssgrendershaderkeys_p.h.

References QString::indexOf(), QString::mid(), and str.

Referenced by QSSGShaderKeyBoolean::fromString(), and QSSGShaderKeyVertexAttribute::fromString().

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

◆ getIdx()

quint32 QSSGShaderKeyPropertyBase::getIdx ( ) const
inline

Definition at line 50 of file qssgrendershaderkeys_p.h.

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

+ Here is the caller graph for this function:

◆ getMaskTemplate()

template<quint32 TBitWidth>
quint32 QSSGShaderKeyPropertyBase::getMaskTemplate ( ) const
inline

Definition at line 42 of file qssgrendershaderkeys_p.h.

◆ getOffset()

quint32 QSSGShaderKeyPropertyBase::getOffset ( ) const
inline

Definition at line 38 of file qssgrendershaderkeys_p.h.

References offset.

◆ internalToString() [1/2]

void QSSGShaderKeyPropertyBase::internalToString ( QByteArray & ioStr,
const QByteArrayView & inBuffer ) const
inlineprotected

Definition at line 53 of file qssgrendershaderkeys_p.h.

Referenced by QSSGShaderKeyBoolean::toString(), QSSGShaderKeyUnsigned< TBitWidth >::toString(), QSSGShaderKeyImageMap::toString(), and QSSGShaderKeyVertexAttribute::toString().

+ Here is the caller graph for this function:

◆ internalToString() [2/2]

static void QSSGShaderKeyPropertyBase::internalToString ( QByteArray & ioStr,
const QByteArrayView & name,
bool inValue )
inlinestaticprotected

Definition at line 60 of file qssgrendershaderkeys_p.h.

◆ setOffset()

void QSSGShaderKeyPropertyBase::setOffset ( quint32 of)
inline

Definition at line 39 of file qssgrendershaderkeys_p.h.

Member Data Documentation

◆ name

QByteArrayView QSSGShaderKeyPropertyBase::name

◆ offset

quint32 QSSGShaderKeyPropertyBase::offset

Definition at line 36 of file qssgrendershaderkeys_p.h.

Referenced by getOffset().


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