Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Opengl GLSL Compute Shader
Forum Updated to NodeBB v4.3 + New Features

Opengl GLSL Compute Shader

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 4.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Antares
    wrote on last edited by
    #1

    Hi, I wanna use the new Opengl 4.3 extension : Compute Shader with qt and his QGLShaderProgram, but Compute Shader is not part of QGLShader::ShaderType enum.

    Is there a way? When it will be available?

    Thanks !

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      You should rely on bare OpenGL calls to create such shader types. Qt's support of recent OpenGL has strong ES profile ties.
      You might also need to create your context yourself to make sure that the proper Core/Compatibility profile is used, and that your extension is available. I recommend using the "GLEw library":http://glew.sourceforge.net/ to deal with all that OpenGL initialization.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Antares
        wrote on last edited by
        #3

        Thanks rcari, so there is no easy possibility to use compute shader like using other shader by now...
        Do you know when it will be available ? Maybe its already done in subversion ?

        edit: Perhaps it is not so difficult to add it to qt source ? If I follow the original code for fragment, vertex and geometry shader...

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #4

          I am planning on adding support for Geometry, Tessellation Control/Evaluation, and Compute shaders in Qt 5.1. It is too late for 5.0 now that the API is frozen. There will hopefully be a whole bunch of other OpenGL related goodies coming in 5.1 too.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Antares
            wrote on last edited by
            #5

            Thanks for the informations, I hope Qt 5.1 coming soon >_<'

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZapB
              wrote on last edited by
              #6

              The development branch for 5.1 should open up for commits very soon now. :)

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved