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
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 , Linear = 1 << 5
}
 
- Public Types inherited from QSSGShaderKeyUnsigned< 6 >
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)
 
bool isLinear (QSSGDataView< quint32 > inKeySet) const
 
void setLinear (QSSGDataRef< quint32 > inKeySet, bool val)
 
void toString (QByteArray &ioStr, QSSGDataView< quint32 > inKeySet) const
 
- Public Member Functions inherited from QSSGShaderKeyUnsigned< 6 >
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 
Linear 

Definition at line 249 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderKeyImageMap()

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

Definition at line 258 of file qssgrendershaderkeys_p.h.

Member Function Documentation

◆ getBitValue()

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

Definition at line 260 of file qssgrendershaderkeys_p.h.

References QSSGShaderKeyUnsigned< 6 >::getValue().

Referenced by isEnabled(), isEnvMap(), isIdentityTransform(), isLightProbe(), isLinear(), 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 278 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 281 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 287 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 284 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:

◆ isLinear()

bool QSSGShaderKeyImageMap::isLinear ( QSSGDataView< quint32 > inKeySet) const
inline

Definition at line 293 of file qssgrendershaderkeys_p.h.

References getBitValue(), and Linear.

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

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

Referenced by setEnabled(), setEnvMap(), setIdentityTransform(), setLightProbe(), setLinear(), 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 279 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 282 of file qssgrendershaderkeys_p.h.

References EnvMap, and setBitValue().

+ Here is the call graph for this function:

◆ setIdentityTransform()

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

Definition at line 288 of file qssgrendershaderkeys_p.h.

References Identity, and setBitValue().

+ Here is the call graph for this function:

◆ setLightProbe()

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

Definition at line 285 of file qssgrendershaderkeys_p.h.

References LightProbe, and setBitValue().

+ Here is the call graph for this function:

◆ setLinear()

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

Definition at line 294 of file qssgrendershaderkeys_p.h.

References Linear, and setBitValue().

+ Here is the call graph for this function:

◆ setUsesUV1()

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

Definition at line 291 of file qssgrendershaderkeys_p.h.

References setBitValue(), and UsesUV1.

+ Here is the call graph for this function:

◆ toString()

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

Definition at line 296 of file qssgrendershaderkeys_p.h.

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

+ Here is the call graph for this function:

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