34 QSGCompressedTexture(
const QTextureFileData& texData);
35 virtual ~QSGCompressedTexture();
37 QSize textureSize()
const override;
38 bool hasAlphaChannel()
const override;
39 bool hasMipmaps()
const override;
41 qint64 comparisonKey()
const override;
42 QRhiTexture *rhiTexture()
const override;
43 void commitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates) override;
45 QTextureFileData textureData()
const;
49 QRhiTexture::Format rhiFormat;
52 static FormatInfo formatInfo(quint32 glTextureFormat);
53 static bool formatIsOpaque(quint32 glTextureFormat);
56 QTextureFileData m_textureData;
58 QRhiTexture *m_texture =
nullptr;
59 bool m_hasAlpha =
false;
60 bool m_uploaded =
false;