![]() |
Qt 6.x
The Qt SDK
|
#include <qqsbcollection_p.h>
Public Member Functions | |
QQsbInMemoryCollection ()=default | |
EntryMap | availableEntries () const override |
Entry | addEntry (const QByteArray &key, const EntryDesc &entryDesc) override |
bool | extractEntry (Entry entry, EntryDesc &entryDesc) override |
void | clear () |
bool | load (const QString &filename) |
bool | save (const QString &filename) |
![]() | |
virtual | ~QQsbCollection () |
virtual EntryMap | availableEntries () const =0 |
virtual Entry | addEntry (const QByteArray &key, const EntryDesc &entryDesc)=0 |
virtual bool | extractEntry (Entry entry, EntryDesc &entryDesc)=0 |
Additional Inherited Members | |
![]() | |
using | FeatureSet = QMap< QByteArray, bool > |
using | EntryMap = QSet< Entry > |
![]() | |
template<typename T > | |
static FeatureSet | toFeatureSet (const T &ssgFeatureSet) |
![]() | |
enum | Version : quint8 { Unknown , One = 0x10 , Two = 0x20 } |
![]() | |
bool | readEndHeader (QDataStream &ds, qint64 *startPos, quint8 *version) |
void | writeEndHeader (QDataStream &ds, qint64 startPos, quint8 version, quint64 magic) |
bool | readEndHeader (QIODevice *device, EntryMap *entries, quint8 *version) |
void | writeEndHeader (QIODevice *device, const EntryMap &entries) |
Definition at line 107 of file qqsbcollection_p.h.
|
default |
|
overridevirtual |
Implements QQsbCollection.
Definition at line 143 of file qqsbcollection.cpp.
References e.
Referenced by QSSGShaderCache::compileForRhi().
|
overridevirtual |
Implements QQsbCollection.
Definition at line 138 of file qqsbcollection.cpp.
Referenced by QSSGShaderCache::QSSGShaderCache().
void QQsbInMemoryCollection::clear | ( | ) |
Definition at line 163 of file qqsbcollection.cpp.
Implements QQsbCollection.
Definition at line 153 of file qqsbcollection.cpp.
References QSet< T >::constEnd(), QSet< T >::constFind(), and it.
Referenced by QSSGShaderCache::tryNewPipelineFromPersistentCache().
bool QQsbInMemoryCollection::load | ( | const QString & | filename | ) |
Definition at line 173 of file qqsbcollection.cpp.
References clear(), e, lock, lockFileName(), qPrintable, QDataStream::Qt_6_0, qWarning, QQsbCollection::readEndHeader(), QIODeviceBase::ReadOnly, and QDataStream::setVersion().
Referenced by QSSGShaderCache::QSSGShaderCache().
bool QQsbInMemoryCollection::save | ( | const QString & | filename | ) |
Definition at line 214 of file qqsbcollection.cpp.
References QSet< T >::cbegin(), QSet< T >::insert(), it, lock, lockFileName(), qPrintable, QDataStream::Qt_6_0, qWarning, QDataStream::setVersion(), QIODeviceBase::Truncate, QQsbCollection::writeEndHeader(), and QIODeviceBase::WriteOnly.
Referenced by QSSGShaderCache::~QSSGShaderCache().