Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. [SOLVED]Qt and the vulkan API
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Qt and the vulkan API

Scheduled Pinned Locked Moved Game Development
4 Posts 2 Posters 5.4k Views 2 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.
  • C Offline
    C Offline
    ceora
    wrote on last edited by ceora
    #1

    Hi, i'm wondering, if Qt will implement the Vulkan API, and if i want to do it by my self, I only need to subclassing QPaintDevice, and QPaintEngine, to use it with a widget or a window??

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I think it's a little bit early to talk about integrating Vulkan into Qt, considering that the specs are not even here (expected "later this year"), let alone any consumer ready driver.
      Although I never did it myself I believe that subclassing these two is enough only if you're planning to use it with your custom window classes (not QWidget derived). To make the existing widgets use the new paint device and engine you would also have to create a custom platform plugin that would return your custom paint device implementation.
      This, of course, would not work with any OpenGL and Qt Quick related classes and modules.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ceora
        wrote on last edited by
        #3

        Thanks for the reply! of course integration should happen when API specs will be released, although i think that if Qt team make an implementation of Vulkan before others, more users will be interested in Qt. So for custom window only this two classes are needed, hope it will be easy to do it!

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Well sure, but there's not gonna be any work on it done if there's no SDK or driver to use, so don't expect anything to start sooner. I doubt that it would be a priority for Digia looking at how much Qt is integrated with OpenGL right now and which platforms they support. Considering that OpenGL is not going away and is still going to be evolved (much in the same direction as Vulkan, Mantle or Metal are) I think it's just gonna be left to the users to implement that support if they need it. This is a similar situation to DirectX (not talking about the ANGLE wrapper). There's no QDirectXWidget as there would be little benefit from it for most people but you can implement it yourself given the window handle and flags Qt provides.

          This is all of course just my speculation and opinion. You might get a different story from the actual Qt devs. Hit the mailing list or IRC channel if you're interested in that.

          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