33 QSGCompressedTexture(
const QTextureFileData& texData);
34 virtual ~QSGCompressedTexture();
36 QSize textureSize()
const override;
37 bool hasAlphaChannel()
const override;
38 bool hasMipmaps()
const override;
40 qint64 comparisonKey()
const override;
41 QRhiTexture *rhiTexture()
const override;
42 void commitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates) override;
44 QTextureFileData textureData()
const;
48 QRhiTexture::Format rhiFormat;
51 static FormatInfo formatInfo(quint32 glTextureFormat);
52 static bool formatIsOpaque(quint32 glTextureFormat);
55 QTextureFileData m_textureData;
57 QRhiTexture *m_texture =
nullptr;
58 bool m_hasAlpha =
false;
59 bool m_uploaded =
false;