![]() |
Qt 6.x
The Qt SDK
|
#include <qquickshape_p_p.h>
Public Member Functions | |
~QQuickShapeGradientCache () | |
QSGTexture * | get (const QQuickShapeGradientCacheKey &grad) |
Static Public Member Functions | |
static QQuickShapeGradientCache * | cacheForRhi (QRhi *rhi) |
Definition at line 181 of file qquickshape_p_p.h.
QQuickShapeGradientCache::~QQuickShapeGradientCache | ( | ) |
Definition at line 1668 of file qquickshape.cpp.
References qDeleteAll().
|
static |
Definition at line 1673 of file qquickshape.cpp.
References QRhi::addCleanupCallback(), cache, caches, and it.
Referenced by QT_BEGIN_NAMESPACE::QQuickShapeCurveMaterialShader::updateSampledImage(), QQuickShapeLinearGradientRhiShader::updateSampledImage(), QQuickShapeRadialGradientRhiShader::updateSampledImage(), and QQuickShapeConicalGradientRhiShader::updateSampledImage().
QSGTexture * QQuickShapeGradientCache::get | ( | const QQuickShapeGradientCacheKey & | grad | ) |
Definition at line 1689 of file qquickshape.cpp.
References QImage::bits(), Qt::black, QSGTexture::ClampToEdge, QImage::fill(), QImage::Format_RGBA8888_Premultiplied, generateGradientColorTable(), QList< T >::isEmpty(), QSGTexture::Linear, QSGTexture::MirroredRepeat, QQuickShapeGradient::PadSpread, qWarning, QQuickShapeGradient::ReflectSpread, QSGTexture::Repeat, QQuickShapeGradient::RepeatSpread, QSGTexture::setFiltering(), QSGTexture::setHorizontalWrapMode(), QSGPlainTexture::setImage(), QSGTexture::setVerticalWrapMode(), QQuickShapeGradientCacheKey::spread, and QQuickShapeGradientCacheKey::stops.
Referenced by QT_BEGIN_NAMESPACE::QQuickShapeCurveMaterialShader::updateSampledImage(), QQuickShapeLinearGradientRhiShader::updateSampledImage(), QQuickShapeRadialGradientRhiShader::updateSampledImage(), and QQuickShapeConicalGradientRhiShader::updateSampledImage().