QSGPlainTexturePrivate(QSGTexture *t)
QSGTexture::Filtering m_last_mipmap_filter
void setTextureSize(const QSize &size)
uint m_dirty_bind_options
static QSGPlainTexture * fromImage(const QImage &image)
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
bool hasMipmaps() const override
Returns true if the texture data contains mipmap levels.
void setOwnsTexture(bool owns)
QSize textureSize() const override
Returns the size of the texture in pixels.
void setHasAlphaChannel(bool alpha)
virtual void commitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates)
Call this function to enqueue image upload operations to resourceUpdates, in case there are any pendi...
QSGTexture::Filtering mipmapFiltering() const
Returns whether mipmapping should be used when sampling from this texture.
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
virtual qint64 comparisonKey() const =0
Returns a key suitable for comparing textures.
virtual QRhiTexture * rhiTexture() const