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
qssgdataref_p.h File Reference

(6dd25886b4fe1f5901f781cb8e1d3c8a7fe83afb)

#include <QtQuick3DUtils/private/qtquick3dutilsglobal_p.h>
#include <QtCore/qlist.h>
#include <QtCore/qbytearray.h>
+ Include dependency graph for qssgdataref_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QSSGDataView< T >
 
struct  QSSGDataView< quint8 >
 
struct  QSSGDataRef< T >
 

Typedefs

using QSSGByteView = QSSGDataView<quint8>
 
using QSSGByteRef = QSSGDataRef<quint8>
 

Functions

template<typename T >
QSSGDataView< T > toDataView (const T &type)
 
template<typename T >
QSSGDataView< T > toDataView (const QList< T > &type)
 
template<typename T >
QSSGByteView toByteView (const T &type)
 
template<typename T >
QSSGByteView toByteView (const QList< T > &type)
 
template<>
QSSGByteView toByteView (const QByteArray &type)
 
QSSGByteView toByteView (const char *str)
 
template<typename T >
QSSGDataView< T > toDataView (const T *type, qsizetype count)
 
template<typename T >
QSSGByteView toByteView (const T *type, qsizetype count)
 
template<typename T >
QSSGDataRef< T > toDataRef (T &type)
 
template<typename T >
QSSGByteRef toByteRef (T &type)
 
template<typename T >
QSSGDataRef< T > toDataRef (T *type, qsizetype count)
 
template<typename T >
QSSGByteRef toByteRef (T *type, qsizetype count)
 

Typedef Documentation

◆ QSSGByteRef

Definition at line 203 of file qssgdataref_p.h.

◆ QSSGByteView

Definition at line 106 of file qssgdataref_p.h.

Function Documentation

◆ toByteRef() [1/2]

template<typename T >
QSSGByteRef toByteRef ( T & type)
inline

Definition at line 212 of file qssgdataref_p.h.

◆ toByteRef() [2/2]

template<typename T >
QSSGByteRef toByteRef ( T * type,
qsizetype count )
inline

Definition at line 224 of file qssgdataref_p.h.

◆ toByteView() [1/5]

QSSGByteView toByteView ( const char * str)
inline

Definition at line 138 of file qssgdataref_p.h.

References qstrlen(), and str.

+ Here is the call graph for this function:

◆ toByteView() [2/5]

template<>
QSSGByteView toByteView ( const QByteArray & type)
inline

Definition at line 133 of file qssgdataref_p.h.

◆ toByteView() [3/5]

template<typename T >
QSSGByteView toByteView ( const QList< T > & type)
inline

Definition at line 127 of file qssgdataref_p.h.

◆ toByteView() [4/5]

template<typename T >
QSSGByteView toByteView ( const T & type)
inline

Definition at line 121 of file qssgdataref_p.h.

◆ toByteView() [5/5]

template<typename T >
QSSGByteView toByteView ( const T * type,
qsizetype count )
inline

Definition at line 150 of file qssgdataref_p.h.

◆ toDataRef() [1/2]

template<typename T >
QSSGDataRef< T > toDataRef ( T & type)
inline

Definition at line 206 of file qssgdataref_p.h.

Referenced by QSSGShaderDefaultMaterialKey::operator QSSGDataRef< quint32 >(), and QSSGShaderKeyUnsigned< TBitWidth >::toString().

+ Here is the caller graph for this function:

◆ toDataRef() [2/2]

template<typename T >
QSSGDataRef< T > toDataRef ( T * type,
qsizetype count )
inline

Definition at line 218 of file qssgdataref_p.h.

◆ toDataView() [1/3]

template<typename T >
QSSGDataView< T > toDataView ( const QList< T > & type)
inline

Definition at line 115 of file qssgdataref_p.h.

◆ toDataView() [2/3]

template<typename T >
QSSGDataView< T > toDataView ( const T & type)
inline

Definition at line 109 of file qssgdataref_p.h.

Referenced by QSSGShaderDefaultMaterialKey::operator QSSGDataView< quint32 >(), QSSGCustomMaterialSystem::updateUniformsForCustomMaterial(), and updateUniformsForDefaultMaterial().

+ Here is the caller graph for this function:

◆ toDataView() [3/3]

template<typename T >
QSSGDataView< T > toDataView ( const T * type,
qsizetype count )
inline

Definition at line 144 of file qssgdataref_p.h.