4#ifndef QSGDEFAULTRENDERCONTEXT_H
5#define QSGDEFAULTRENDERCONTEXT_H
18#include <QtQuick/private/qsgcontext_p.h>
41 QRhi *
rhi()
const override {
return m_rhi; }
42 bool isValid()
const override {
return m_rhi !=
nullptr; }
44 static const int INIT_PARAMS_MAGIC = 0x50E;
46 int sType = INIT_PARAMS_MAGIC;
66 void *callbackUserData)
override;
86 return m_currentFrameCommandBuffer;
90 return m_currentFrameRenderPass;
101 return m_currentDevicePixelRatio;
107 void resetGlyphCacheResources();
QQuickGraphicsConfiguration controls lower level graphics settings for the QQuickWindow.
The QRawFont class provides access to a single physical instance of a font.
The QSGContext holds the scene graph entry points for one QML engine.
int msaaSampleCount() const
qreal m_currentDevicePixelRatio
int maxTextureSize() const override
QRhiResourceUpdateBatch * m_glyphCacheResourceUpdates
bool useDepthBufferFor2D() const
QSet< QRhiTexture * > m_pendingGlyphCacheTextures
QRhiRenderPassDescriptor * m_currentFrameRenderPass
QRhiRenderPassDescriptor * currentFrameRenderPass() const
bool isValid() const override
bool m_useDepthBufferFor2D
QSGRhiAtlasTexture::Manager * m_rhiAtlasManager
qreal currentDevicePixelRatio() const
QRhi * rhi() const override
QRhiCommandBuffer * currentFrameCommandBuffer() const
QRhiCommandBuffer * m_currentFrameCommandBuffer
The QSGMaterialShader class represents a graphics API independent shader program.
virtual void endNextFrame(QSGRenderer *renderer)
virtual QSGTexture * createTexture(const QImage &image, uint flags=CreateTexture_Alpha) const =0
virtual void beginNextFrame(QSGRenderer *renderer, const QSGRenderTarget &renderTarget, RenderPassCallback mainPassRecordingStart, RenderPassCallback mainPassRecordingEnd, void *callbackUserData)
virtual void invalidateGlyphCaches()
virtual QSGDistanceFieldGlyphCache * distanceFieldGlyphCache(const QRawFont &font, int renderTypeQuality)
Factory function for scene graph backends of the distance-field glyph cache.
virtual void invalidate()
void(*)(void *) RenderPassCallback
virtual QSGRenderer * createRenderer(QSGRendererInterface::RenderMode renderMode=QSGRendererInterface::RenderMode2D)=0
virtual void renderNextFrame(QSGRenderer *renderer)=0
virtual void preprocess()
Do necessary preprocessing before the frame.
virtual void prepareSync(qreal devicePixelRatio, QRhiCommandBuffer *cb, const QQuickGraphicsConfiguration &config)
virtual QSGTexture * compressedTextureForFactory(const QSGCompressedTextureFactory *) const
Return the texture corresponding to a texture factory.
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
The renderer class is the abstract baseclass used for rendering the QML scene graph.
Variant
Describes what kind of shader code an entry contains.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)
QItemEditorFactory * factory
QSvgRenderer * renderer
[0]
QSize initialSurfacePixelSize