![]() |
Qt 6.x
The Qt SDK
|
#include <qsgrhitextureglyphcache_p.h>
Additional Inherited Members | |
![]() | |
QHash< GlyphAndSubPixelPosition, Coord > | coords |
![]() | |
QFontEngine::GlyphFormat | m_format |
QTransform | m_transform |
QColor | m_color |
![]() | |
QAtomicInt | ref |
![]() | |
int | calculateSubPixelPositionCount (glyph_t) const |
![]() | |
QFontEngine * | m_current_fontengine |
QHash< GlyphAndSubPixelPosition, Coord > | m_pendingGlyphs |
int | m_w |
int | m_h |
int | m_cx |
int | m_cy |
int | m_currentRowHeight |
Definition at line 25 of file qsgrhitextureglyphcache_p.h.
QT_BEGIN_NAMESPACE QSGRhiTextureGlyphCache::QSGRhiTextureGlyphCache | ( | QSGDefaultRenderContext * | rc, |
QFontEngine::GlyphFormat | format, | ||
const QTransform & | matrix, | ||
const QColor & | color = QColor() |
||
) |
Definition at line 11 of file qsgrhitextureglyphcache.cpp.
References QRhi::backend(), and QRhi::OpenGLES2.
QSGRhiTextureGlyphCache::~QSGRhiTextureGlyphCache | ( | ) |
Definition at line 24 of file qsgrhitextureglyphcache.cpp.
References QSGDefaultRenderContext::deferredReleaseGlyphCacheTexture().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 97 of file qsgrhitextureglyphcache.cpp.
References QVarLengthArray< T, Prealloc >::isEmpty(), and Q_ASSERT.
void QSGRhiTextureGlyphCache::commitResourceUpdates | ( | QRhiResourceUpdateBatch * | mergeInto | ) |
Definition at line 211 of file qsgrhitextureglyphcache.cpp.
References QSGDefaultRenderContext::maybeGlyphCacheResourceUpdates(), QRhiResourceUpdateBatch::merge(), and QSGDefaultRenderContext::resetGlyphCacheResources().
Referenced by QSGTextMaskRhiShader::updateUniformData().
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 53 of file qsgrhitextureglyphcache.cpp.
References QImageTextureGlyphCache::createTextureData(), and qMax().
bool QSGRhiTextureGlyphCache::eightBitFormatIsAlphaSwizzled | ( | ) | const |
Definition at line 219 of file qsgrhitextureglyphcache.cpp.
References QRhi::isFeatureSupported(), and QRhi::RedOrAlpha8IsRed.
Referenced by QSGTextMaskMaterial::createShader(), QSGStyledTextMaterial::createShader(), and QSGOutlinedTextMaterial::createShader().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 166 of file qsgrhitextureglyphcache.cpp.
References QRhiTexture::BGRA8, QVarLengthArray< T, Prealloc >::cbegin(), QVarLengthArray< T, Prealloc >::cend(), QVarLengthArray< T, Prealloc >::clear(), desc, QFontEngine::Format_A32, QFontEngine::Format_ARGB, QSGDefaultRenderContext::glyphCacheResourceUpdates(), QVarLengthArray< T, Prealloc >::isEmpty(), QFontEngineGlyphCache::m_format, QRhiTexture::RED_OR_ALPHA8, QRhiTexture::RGBA8, and QRhiResourceUpdateBatch::uploadTexture().
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 145 of file qsgrhitextureglyphcache.cpp.
References QVarLengthArray< T, Prealloc >::append(), QImageTextureGlyphCache::fillTexture(), QImageTextureGlyphCache::image(), QRhiTextureSubresourceUploadDescription::setDestinationTopLeft(), QRhiTextureSubresourceUploadDescription::setImage(), QRhiTextureSubresourceUploadDescription::setSourceSize(), QRhiTextureSubresourceUploadDescription::setSourceTopLeft(), and QTextureGlyphCache::textureMapForGlyph().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 190 of file qsgrhitextureglyphcache.cpp.
References QFontEngine::Format_Mono, and QFontEngineGlyphCache::m_format.
|
inline |
Definition at line 48 of file qsgrhitextureglyphcache_p.h.
References QSize::height(), and qMax().
Referenced by QSGTextMaskMaterial::ensureUpToDate(), and QSGTextMaskRhiShader::updateUniformData().
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 203 of file qsgrhitextureglyphcache.cpp.
References qMin(), QRhi::resourceLimit(), and QRhi::TextureSizeMax.
|
overridevirtual |
Reimplemented from QTextureGlyphCache.
Definition at line 198 of file qsgrhitextureglyphcache.cpp.
References QRhi::resourceLimit(), and QRhi::TextureSizeMax.
|
overridevirtual |
Reimplemented from QImageTextureGlyphCache.
Definition at line 64 of file qsgrhitextureglyphcache.cpp.
References QRhiResourceUpdateBatch::copyTexture(), QSGDefaultRenderContext::deferredReleaseGlyphCacheTexture(), QRhiTexture::format(), QSGDefaultRenderContext::glyphCacheResourceUpdates(), QSize::height(), QImageTextureGlyphCache::image(), QRhiTexture::pixelSize(), qMax(), qMin(), QImageTextureGlyphCache::resizeTextureData(), QRhiTextureSubresourceUploadDescription::setSourceSize(), QRhiResourceUpdateBatch::uploadTexture(), and QSize::width().
|
inline |
Definition at line 42 of file qsgrhitextureglyphcache_p.h.
Referenced by QSGTextMaskMaterial::ensureUpToDate().
|
inline |
Definition at line 47 of file qsgrhitextureglyphcache_p.h.
References qMax(), and QSize::width().
Referenced by QSGTextMaskMaterial::ensureUpToDate(), and QSGTextMaskRhiShader::updateUniformData().