diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-08-30 11:48:42 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-08-30 12:30:18 +0200 |
commit | cefab21cbd464171f0f90de9ac12c6174ecd7d59 (patch) | |
tree | 1f426350f3364edf73c9b320445488e1c7a7d9d7 | |
parent | 08c365ca12abb3d641d923f98380ed6d8df3b05b (diff) |
QQuickFbo: add the RHI warning
This class will probably go away in Qt 6. "Probably", because it is
not yet clear if/how an alternative will be provided.
Change-Id: Iba205c394a97bf8d2c1001f8f42ad26be6841b09
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
-rw-r--r-- | src/quick/items/qquickframebufferobject.cpp | 4 | ||||
-rw-r--r-- | src/quick/items/qquickframebufferobject.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/quick/items/qquickframebufferobject.cpp b/src/quick/items/qquickframebufferobject.cpp index 48f8b8db5c..190bc6853c 100644 --- a/src/quick/items/qquickframebufferobject.cpp +++ b/src/quick/items/qquickframebufferobject.cpp @@ -109,6 +109,10 @@ public: * and can be used directly in \l {ShaderEffect}{ShaderEffects} and other * classes that consume texture providers. * + * \warning This class is only suitable when working directly with OpenGL. It + * is not compatible with the \l{Scene Graph Adaptations}{RHI-based rendering + * path}. + * * \sa {Scene Graph - Rendering FBOs}, {Scene Graph and Rendering} */ diff --git a/src/quick/items/qquickframebufferobject.h b/src/quick/items/qquickframebufferobject.h index d66ca40b3a..db143e48cf 100644 --- a/src/quick/items/qquickframebufferobject.h +++ b/src/quick/items/qquickframebufferobject.h @@ -44,11 +44,12 @@ QT_BEGIN_NAMESPACE - class QOpenGLFramebufferObject; class QQuickFramebufferObjectPrivate; class QSGFramebufferObjectNode; +// ### Qt 6: To be removed. To be seen if an alternative will need to be introduced. + class Q_QUICK_EXPORT QQuickFramebufferObject : public QQuickItem { Q_OBJECT |