Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QSSGShaderDefaultMaterialKey Struct Reference

#include <qssgrendershaderkeys_p.h>

+ Collaboration diagram for QSSGShaderDefaultMaterialKey:

Classes

struct  StringInVisitor
 
struct  StringVisitor
 

Public Types

enum  { DataBufferSize = 13 }
 

Public Member Functions

 QSSGShaderDefaultMaterialKey (size_t inFeatureSetHash)
 
 QSSGShaderDefaultMaterialKey ()
 
size_t hash () const
 
bool operator== (const QSSGShaderDefaultMaterialKey &other) const
 
 operator QSSGDataRef ()
 
 operator QSSGDataView () const
 
void toString (QByteArray &ioString, const QSSGShaderDefaultMaterialKeyProperties &inProperties) const
 
void fromString (QByteArray &ioString, QSSGShaderDefaultMaterialKeyProperties &inProperties)
 
QByteArray toByteArray () const
 
bool fromByteArray (const QByteArray &data) const
 

Public Attributes

quint32 m_dataBuffer [DataBufferSize]
 
size_t m_featureSetHash
 

Detailed Description

Definition at line 833 of file qssgrendershaderkeys_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DataBufferSize 

Definition at line 835 of file qssgrendershaderkeys_p.h.

Constructor & Destructor Documentation

◆ QSSGShaderDefaultMaterialKey() [1/2]

QSSGShaderDefaultMaterialKey::QSSGShaderDefaultMaterialKey ( size_t  inFeatureSetHash)
inlineexplicit

Definition at line 841 of file qssgrendershaderkeys_p.h.

References DataBufferSize, and m_dataBuffer.

◆ QSSGShaderDefaultMaterialKey() [2/2]

QSSGShaderDefaultMaterialKey::QSSGShaderDefaultMaterialKey ( )
inline

Definition at line 847 of file qssgrendershaderkeys_p.h.

References DataBufferSize, and m_dataBuffer.

Member Function Documentation

◆ fromByteArray()

bool QSSGShaderDefaultMaterialKey::fromByteArray ( const QByteArray data) const
inline

Definition at line 923 of file qssgrendershaderkeys_p.h.

References m_dataBuffer.

◆ fromString()

void QSSGShaderDefaultMaterialKey::fromString ( QByteArray ioString,
QSSGShaderDefaultMaterialKeyProperties inProperties 
)
inline

Definition at line 911 of file qssgrendershaderkeys_p.h.

References QSSGShaderDefaultMaterialKeyProperties::visitProperties().

+ Here is the call graph for this function:

◆ hash()

size_t QSSGShaderDefaultMaterialKey::hash ( ) const
inline

Definition at line 853 of file qssgrendershaderkeys_p.h.

References DataBufferSize, m_dataBuffer, m_featureSetHash, and qHash().

Referenced by QSSGShaderMapKey::QSSGShaderMapKey().

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

◆ operator QSSGDataRef()

QSSGShaderDefaultMaterialKey::operator QSSGDataRef ( )
inline

Definition at line 870 of file qssgrendershaderkeys_p.h.

References DataBufferSize, m_dataBuffer, and toDataRef().

+ Here is the call graph for this function:

◆ operator QSSGDataView()

QSSGShaderDefaultMaterialKey::operator QSSGDataView ( ) const
inline

Definition at line 871 of file qssgrendershaderkeys_p.h.

References DataBufferSize, m_dataBuffer, and toDataView().

+ Here is the call graph for this function:

◆ operator==()

bool QSSGShaderDefaultMaterialKey::operator== ( const QSSGShaderDefaultMaterialKey other) const
inline

Definition at line 861 of file qssgrendershaderkeys_p.h.

References DataBufferSize, m_dataBuffer, m_featureSetHash, and other().

+ Here is the call graph for this function:

◆ toByteArray()

QByteArray QSSGShaderDefaultMaterialKey::toByteArray ( ) const
inline

Definition at line 916 of file qssgrendershaderkeys_p.h.

References m_dataBuffer, and ret.

◆ toString()

void QSSGShaderDefaultMaterialKey::toString ( QByteArray ioString,
const QSSGShaderDefaultMaterialKeyProperties inProperties 
) const
inline

Definition at line 905 of file qssgrendershaderkeys_p.h.

References QSSGShaderDefaultMaterialKeyProperties::m_stringBufferSizeHint, and QByteArray::reserve().

Referenced by QSSGRenderer::generateRhiShaderPipelineImpl(), and QSSGCustomMaterialSystem::shadersForCustomMaterial().

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

Member Data Documentation

◆ m_dataBuffer

◆ m_featureSetHash

size_t QSSGShaderDefaultMaterialKey::m_featureSetHash

Definition at line 839 of file qssgrendershaderkeys_p.h.

Referenced by hash(), and operator==().


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