Add a note in the docs about FBO multisampling
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 18 Apr 2012 06:29:56 +0000 (08:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Apr 2012 01:14:44 +0000 (03:14 +0200)
Change-Id: I4c0b522ce937e681a9208cc94a1265f6b10ebcd3
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/quick/items/qquickshadereffectsource.cpp

index fffa4d9..2078e70 100644 (file)
@@ -527,6 +527,14 @@ QImage QQuickShaderEffectTexture::toImage() const
     border width falls outside the texture. To get the whole border, you can
     extend the \l sourceRect.
 
+    \note The ShaderEffectSource relies on FBO multisampling support
+    to antialias edges. If the underlying hardware does not support this,
+    which is the case for most embedded graphics chips, edges rendered
+    inside a ShaderEffectSource will not be antialiased. One way to remedy
+    this is to double the size of the effect source and render it with
+    \c {smooth: true}. This will be equivalent to 4x multisampling, at
+    the cost of lower performance and higher memory use.
+
     \warning In most cases, using a ShaderEffectSource will decrease
     performance, and in all cases, it will increase video memory usage.
     Rendering through a ShaderEffectSource might also lead to lower quality