Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGShaderKeyImageMap Struct Reference

#include <qssgrendershaderkeys_p.h>

+ Inheritance diagram for QSSGShaderKeyImageMap:
+ Collaboration diagram for QSSGShaderKeyImageMap:

Public Types

enum  ImageMapBits {
  Enabled = 1 << 0 , EnvMap = 1 << 1 , LightProbe = 1 << 2 , Identity = 1 << 3 ,
  UsesUV1 = 1 << 4
}
 
- Public Types inherited from QSSGShaderKeyUnsigned< 5 >
enum  
 

Public Member Functions

 QSSGShaderKeyImageMap (const char *inName="")
 
bool getBitValue (ImageMapBits imageBit, QSSGDataView< quint32 > inKeySet) const
 
void setBitValue (ImageMapBits imageBit, bool inValue, QSSGDataRef< quint32 > inKeySet)
 
bool isEnabled (QSSGDataView< quint32 > inKeySet) const
 
void setEnabled (QSSGDataRef< quint32 > inKeySet, bool val)
 
bool isEnvMap (QSSGDataView< quint32 > inKeySet) const
 
void setEnvMap (QSSGDataRef< quint32 > inKeySet, bool val)
 
bool isLightProbe (QSSGDataView< quint32 > inKeySet) const
 
void setLightProbe (QSSGDataRef< quint32 > inKeySet, bool val)
 
bool isIdentityTransform (QSSGDataView< quint32 > inKeySet) const
 
void setIdentityTransform (QSSGDataRef< quint32 > inKeySet, bool val)
 
bool isUsingUV1 (QSSGDataView< quint32 > inKeySet) const
 
void setUsesUV1 (QSSGDataRef< quint32 > inKeySet, bool val)
 
void toString (QByteArray &ioStr, QSSGDataView< quint32 > inKeySet) const
 
- Public Member Functions inherited from QSSGShaderKeyUnsigned< 5 >
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 247 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ ImageMapBits

Enumerator
Enabled 
EnvMap 
LightProbe 
Identity 
UsesUV1 

Definition at line 249 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyImageMap()

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

Definition at line 257 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ getBitValue()

bool QSSGShaderKeyImageMap::getBitValue ( ImageMapBits  imageBit,
QSSGDataView< quint32 inKeySet 
) const
inline

Definition at line 259 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< 5 >::getValue().

Referenced by isEnabled(), isEnvMap(), isIdentityTransform(), isLightProbe(), and isUsingUV1().

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

◆ isEnabled()

bool QSSGShaderKeyImageMap::isEnabled ( QSSGDataView< quint32 inKeySet) const
inline

Definition at line 277 of file qssgrendershaderkeys_p.h.

References Enabled, and getBitValue().

Referenced by toString().

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

◆ isEnvMap()

bool QSSGShaderKeyImageMap::isEnvMap ( QSSGDataView< quint32 inKeySet) const
inline

Definition at line 280 of file qssgrendershaderkeys_p.h.

References EnvMap, and getBitValue().

Referenced by toString().

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

◆ isIdentityTransform()

bool QSSGShaderKeyImageMap::isIdentityTransform ( QSSGDataView< quint32 inKeySet) const
inline

Definition at line 286 of file qssgrendershaderkeys_p.h.

References getBitValue(), and Identity.

Referenced by toString().

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

◆ isLightProbe()

bool QSSGShaderKeyImageMap::isLightProbe ( QSSGDataView< quint32 inKeySet) const
inline

Definition at line 283 of file qssgrendershaderkeys_p.h.

References getBitValue(), and LightProbe.

Referenced by toString().

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

◆ isUsingUV1()

bool QSSGShaderKeyImageMap::isUsingUV1 ( QSSGDataView< quint32 inKeySet) const
inline

Definition at line 289 of file qssgrendershaderkeys_p.h.

References getBitValue(), and UsesUV1.

Referenced by toString().

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

◆ setBitValue()

void QSSGShaderKeyImageMap::setBitValue ( ImageMapBits  imageBit,
bool  inValue,
QSSGDataRef< quint32 inKeySet 
)
inline

Definition at line 264 of file qssgrendershaderkeys_p.h.

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

Referenced by setEnabled(), setEnvMap(), setIdentityTransform(), setLightProbe(), and setUsesUV1().

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

◆ setEnabled()

void QSSGShaderKeyImageMap::setEnabled ( QSSGDataRef< quint32 inKeySet,
bool  val 
)
inline

Definition at line 278 of file qssgrendershaderkeys_p.h.

References Enabled, and setBitValue().

Referenced by QSSGLayerRenderData::prepareImageForRender().

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

◆ setEnvMap()

void QSSGShaderKeyImageMap::setEnvMap ( QSSGDataRef< quint32 inKeySet,
bool  val 
)
inline

Definition at line 281 of file qssgrendershaderkeys_p.h.

References EnvMap, and setBitValue().

Referenced by QSSGLayerRenderData::prepareImageForRender().

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

◆ setIdentityTransform()

void QSSGShaderKeyImageMap::setIdentityTransform ( QSSGDataRef< quint32 inKeySet,
bool  val 
)
inline

Definition at line 287 of file qssgrendershaderkeys_p.h.

References Identity, and setBitValue().

Referenced by QSSGLayerRenderData::prepareImageForRender().

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

◆ setLightProbe()

void QSSGShaderKeyImageMap::setLightProbe ( QSSGDataRef< quint32 inKeySet,
bool  val 
)
inline

Definition at line 284 of file qssgrendershaderkeys_p.h.

References LightProbe, and setBitValue().

Referenced by QSSGLayerRenderData::prepareImageForRender().

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

◆ setUsesUV1()

void QSSGShaderKeyImageMap::setUsesUV1 ( QSSGDataRef< quint32 inKeySet,
bool  val 
)
inline

Definition at line 290 of file qssgrendershaderkeys_p.h.

References setBitValue(), and UsesUV1.

Referenced by QSSGLayerRenderData::prepareImageForRender().

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

◆ toString()

void QSSGShaderKeyImageMap::toString ( QByteArray ioStr,
QSSGDataView< quint32 inKeySet 
) const
inline

Definition at line 292 of file qssgrendershaderkeys_p.h.

References QByteArray::append(), QSSGShaderKeyPropertyBase::internalToString(), isEnabled(), isEnvMap(), isIdentityTransform(), isLightProbe(), and isUsingUV1().

+ Here is the call graph for this function:

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