Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qsggradientcache_p.h>
Classes | |
struct | GradientDesc |
Public Member Functions | |
~QSGGradientCache () | |
QSGTexture * | get (const QSGGradientCacheKey &grad) |
Static Public Member Functions | |
static QSGGradientCache * | cacheForRhi (QRhi *rhi) |
Definition at line 50 of file qsggradientcache_p.h.
QSGGradientCache::~QSGGradientCache | ( | ) |
Definition at line 64 of file qsggradientcache.cpp.
References qDeleteAll().
|
static |
Definition at line 69 of file qsggradientcache.cpp.
References QRhi::addCleanupCallback(), cache, caches, and it.
Referenced by QT_BEGIN_NAMESPACE::QSGCurveFillMaterialShader::updateSampledImage(), QQuickShapeLinearGradientRhiShader::updateSampledImage(), QQuickShapeRadialGradientRhiShader::updateSampledImage(), and QQuickShapeConicalGradientRhiShader::updateSampledImage().
QSGTexture * QSGGradientCache::get | ( | const QSGGradientCacheKey & | grad | ) |
Definition at line 85 of file qsggradientcache.cpp.
References Qt::black, QSGTexture::ClampToEdge, QImage::Format_RGBA8888_Premultiplied, generateGradientColorTable(), QList< T >::isEmpty(), QSGTexture::Linear, QSGTexture::MirroredRepeat, QGradient::PadSpread, qWarning, QGradient::ReflectSpread, QSGTexture::Repeat, QGradient::RepeatSpread, QSGTexture::setFiltering(), QSGTexture::setHorizontalWrapMode(), QSGPlainTexture::setImage(), QSGTexture::setVerticalWrapMode(), QSGGradientCacheKey::spread, and QSGGradientCacheKey::stops.