[Interest] Adding 10-bit OpenGL support in QML

McLin, Matthew matthew.mclin at barco.com
Mon Apr 7 17:43:51 CEST 2014


Hello,

Just in case someone else also has questions about >8-bit support in QQuickView and finds this thread, I wanted to let people know that the 10-bit support issue is now fixed in the current Qt 5.3.0 beta.
https://codereview.qt-project.org/#change,80610

Also, I am attempting to reply to an old thread, but have not done this before, and have not figured out how to adjust the e-mail header with Outlook.  I apologize if this ends up showing up as a new topic.

Cheers, Matt

From: interest-bounces+matt.mclin=barco.com at qt-project.org [mailto:interest-bounces+matt.mclin=barco.com at qt-project.org] On Behalf Of McLin, Matthew
Sent: Wednesday, March 05, 2014 11:16 AM
To: interest at qt-project.org
Cc: Fei, Yiyang; Kurt Pattyn
Subject: [Interest] Adding 10-bit OpenGL support in QML

Hello,

I am trying to render a 10-bit image from an OpenGL fragment shader attached to a QQuickItem in a simple QML scene.  My gfx driver & display support 10-bit, and I know this already works if I create a standalone QGLWidget with a 10-bit format.  To get this working in QML, I have tried setting my QQuickView's format to 10-bit as follows:

QSurfaceFormat fmt;
fmt.setRedBufferSize(10);
fmt.setGreenBufferSize(10);
fmt.setBlueBufferSize(10);
fmt.setRenderableType(QSurfaceFormat::OpenGL);
QQuickView view;
view.setFormat(fmt);
view.setSource(...);
view.show();

I also register a QQuickItem and render some patterns from a fragment shader in there.  When I ask this item's QQuickWindow member for its current format via window()->format(), it reports back the same 10-bit format I requested earlier, however if I ask for the format of the window's opengl context via window()->openglContext()->format(), then it reports an 8-bit format.

Note that I am not using ANGLE - process explorer shows that my app is in fact loading opengl32.dll and not directx.

So I have two questions:

*        Why does my OpenGL context format not match the window format?

*        Am I taking the correct approach, or which steps might I be missing to achieve a 10-bit backbuffer for my QQuickItem to draw into?

This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140407/01d38fcf/attachment.html>


More information about the Interest mailing list