22#include <QtQuick/private/qsgcontext_p.h>
43 : rt(rt), rpDesc(rpDesc),
cb(
cb) { }
46 : paintDevice(paintDevice) { }
75 bool isMirrored()
const;
76 void renderScene()
override;
77 void prepareSceneInline()
override;
78 void renderSceneInline()
override;
79 void nodeChanged(
QSGNode *node, QSGNode::DirtyState
state)
override;
102 m_renderPassRecordingCallbacks.start =
start;
103 m_renderPassRecordingCallbacks.end =
end;
104 m_renderPassRecordingCallbacks.userData = userData;
110 virtual void prepareInline();
111 virtual void renderInline();
113 virtual void preprocess();
115 void addNodesToPreprocess(
QSGNode *node);
116 void removeNodesToPreprocess(
QSGNode *node);
134 void *userData =
nullptr;
135 } m_renderPassRecordingCallbacks;
143 uint m_changed_emitted : 1;
144 uint m_is_rendering : 1;
145 uint m_is_preprocessing : 1;
163 void visitNode(
QSGNode *
n)
override;
164 void visitChildren(
QSGNode *
n)
override;
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
QSGAbstractRenderer gives access to the scene graph nodes and rendering.
Encapsulates the current rendering state during a call to QSGMaterialShader::updateUniformData() and ...
The QSGNodeDumper class provides a way of dumping a scene grahp to the console.
The QSGNodeVisitor class is a helper class for traversing the scene graph.
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
void(*)(void *) RenderPassCallback
QSGRenderTarget(QRhiRenderTarget *rt, QRhiRenderPassDescriptor *rpDesc, QRhiCommandBuffer *cb)
QSGRenderTarget(QPaintDevice *paintDevice)
The renderer class is the abstract baseclass used for rendering the QML scene graph.
QMatrix4x4 m_current_projection_matrix_native_ndc
void setRenderTarget(const QSGRenderTarget &rt)
qreal m_device_pixel_ratio
QByteArray * currentUniformData() const
QMatrix4x4 m_current_projection_matrix
virtual bool hasVisualizationModeWithContinuousUpdate() const
QRhi * currentRhi() const
QMatrix4x4 currentProjectionMatrix() const
QRhiResourceUpdateBatch * currentResourceUpdateBatch() const
const QSGRenderTarget & renderTarget() const
QRhiResourceUpdateBatch * m_current_resource_update_batch
qreal currentOpacity() const
QMatrix4x4 m_current_model_view_matrix
QByteArray * m_current_uniform_data
void setRenderPassRecordingCallbacks(QSGRenderContext::RenderPassCallback start, QSGRenderContext::RenderPassCallback end, void *userData)
QSGMaterialShader::RenderState state(QSGMaterialShader::RenderState::DirtyStates dirty) const
QSGRenderContext * context() const
qreal devicePixelRatio() const
qreal m_current_determinant
QSGRenderContext * m_context
QMatrix4x4 currentCombinedMatrix() const
void setDevicePixelRatio(qreal ratio)
qreal determinant() const
virtual void setVisualizationMode(const QByteArray &)
virtual void releaseCachedResources()
QMatrix4x4 currentModelViewMatrix() const
Combined button and popup list for selecting options.
Q_QUICK_PRIVATE_EXPORT void qsg_set_fatal_renderer_error()
Q_QUICK_PRIVATE_EXPORT bool qsg_test_and_clear_fatal_render_error()
static QString dump(const QByteArray &)
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)