From ef7ce181b89e7894d2c72c1cfc6f5e576272f2dc Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 7 Apr 2020 17:31:10 +0200 Subject: Update QQuickFBO docs and remove TODO We will support QQuickFramebufferObject in 6.0 too, but only when Qt Quick is running with OpenGL. Change-Id: I076688fa9cc36cde03b8d51df47e5acc887a814d Reviewed-by: Andy Nichols --- src/quick/items/qquickframebufferobject.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/quick/items/qquickframebufferobject.cpp') 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 -- cgit v1.2.3