diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-03-10 15:34:13 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-03-11 12:21:28 +0100 |
commit | 4482aa576b2e0e6f5b30675d2681599daaf23762 (patch) | |
tree | 533e26942133de49948df9a7195b644ee2f96a84 /src/quick/scenegraph/coreapi/qsgrendernode_p.h | |
parent | 1d79bef288623fca8c7cc3fc2c49860b6e2abedb (diff) |
rhi: Make QSGRenderNode usable in Quick3Dv5.15.0-beta2
Cannot just rely on a render() function, need a point where the "prepare"
step can be performed, outside the main renderpass.
Also enables proper m_useDepthBuffer handling for the RHI code path.
Task-number: QTBUG-82797
Task-number: QTBUG-82793
Change-Id: I525228e53acefad9f2e6a33d446260a1521d8ae1
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgrendernode_p.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgrendernode_p.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgrendernode_p.h b/src/quick/scenegraph/coreapi/qsgrendernode_p.h index 5c42e55689..534d630f15 100644 --- a/src/quick/scenegraph/coreapi/qsgrendernode_p.h +++ b/src/quick/scenegraph/coreapi/qsgrendernode_p.h @@ -51,12 +51,14 @@ // We mean it. // +#include <QtQuick/private/qtquickglobal_p.h> #include <QtQuick/qsgnode.h> #include <QtQuick/qsgrendernode.h> +#include <functional> QT_BEGIN_NAMESPACE -class QSGRenderNodePrivate +class Q_QUICK_PRIVATE_EXPORT QSGRenderNodePrivate { public: QSGRenderNodePrivate(); @@ -66,6 +68,11 @@ public: const QMatrix4x4 *m_matrix; const QSGClipNode *m_clip_list; qreal m_opacity; + + // ### Qt 6: change this into a value for flags() + bool m_needsExternalRendering; + // ### Qt 6: change this into a virtual prepare() function + std::function<void()> m_prepareCallback; }; QT_END_NAMESPACE |