diff options
-rw-r--r-- | src/quick/items/qquickframebufferobject.cpp | 11 | ||||
-rw-r--r-- | src/quick/items/qquickframebufferobject.h | 3 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/quick/items/qquickframebufferobject.cpp b/src/quick/items/qquickframebufferobject.cpp index 62b982340d..e13ae3442e 100644 --- a/src/quick/items/qquickframebufferobject.cpp +++ b/src/quick/items/qquickframebufferobject.cpp @@ -75,6 +75,12 @@ public: * for integrating OpenGL rendering using a framebuffer object (FBO) * with Qt Quick. * + * \warning This class is only functional when Qt Quick is rendering via + * OpenGL. It is not compatible with other graphics APIs, such as Vulkan or + * Metal. It should be treated as a legacy class that is only present in order + * to enable Qt 5 applications to function without source compatibility breaks + * as long as they tie themselves to openGL. + * * On most platforms, the rendering will occur on a \l {Scene Graph and Rendering}{dedicated thread}. * For this reason, the QQuickFramebufferObject class enforces a strict * separation between the item implementation and the FBO rendering. All @@ -83,11 +89,6 @@ public: * Everything that relates to rendering must be located in the * QQuickFramebufferObject::Renderer class. * - * \warning This class is only functional when Qt Quick is rendering - * via OpenGL, either directly or through the \l{Scene Graph - * Adaptations}{RHI-based rendering path}. It is not compatible with - * other RHI backends, such as, Vulkan or Metal. - * * To avoid race conditions and read/write issues from two threads * it is important that the renderer and the item never read or * write shared variables. Communication between the item and the renderer diff --git a/src/quick/items/qquickframebufferobject.h b/src/quick/items/qquickframebufferobject.h index e26c8293a6..cbb6646dca 100644 --- a/src/quick/items/qquickframebufferobject.h +++ b/src/quick/items/qquickframebufferobject.h @@ -48,9 +48,6 @@ class QOpenGLFramebufferObject; class QQuickFramebufferObjectPrivate; class QSGFramebufferObjectNode; -// ### Qt 6: Consider what to do here. QQuickFbo supports both direct OpenGL and -// OpenGL via QRhi, but it cannot function when running with another rhi backend. - class Q_QUICK_EXPORT QQuickFramebufferObject : public QQuickItem { Q_OBJECT |