[Interest] OpenGL — using glDispatchComputeGroupSizeARB

Pieter Barendrecht pjbarendrecht at gmail.com
Fri Jun 7 10:09:21 CEST 2019


Works like a charm, thanks!
Pieter

On Thu, 6 Jun 2019 at 19:15, Giuseppe D'Angelo via Interest <
interest at qt-project.org> wrote:

> Hi,
>
> On 06/06/2019 17:05, Pieter Barendrecht wrote:
> > I'm trying to figure out exactly what to include to be able to use the
> > OpenGL command glDispatchComputeGroupSizeARB (which I'm positive is
> > supported on my machine/system). Unfortunately, the typical extension
> > workflow (i.e. #include <QtOpenGLExtensions> in the relevant header file
> > and QT += openglextensions in the .pro file) does not seem to work — it
> > still results in an 'use of undeclared identifier' error upon compiling
> > the code. Any thoughts? I'm on Linux (64bit), using Qt 5.12.
>
> I believe the QtOpenGLExtensions hasn't been regenerated for quite a
> while, and thus does not cover this extension (Khronos changed the
> extension database format or somesuch).
>
> An easy workaround is to resolve the entry point manually. Include
> qopengl.h and do something like this:
>
> > if (ctx->hasExtension("GL_ARB_compute_variable_group_size")) {
> >     entry =
> reinterpret_cast<PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC>(ctx->getProcAddress("glDispatchComputeGroupSizeARB");
> >     // use it
> > }
>
> HTH,
>
> --
> Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190607/43dc450e/attachment.html>


More information about the Interest mailing list