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. How to have Qt interoperate with Metal (using the new Metal-cpp)?

How to have Qt interoperate with Metal (using the new Metal-cpp)?

Scheduled Pinned Locked Moved Unsolved General and Desktop
metalmetal-cppmacos
2 Posts 2 Posters 820 Views
  • 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
    AName
    wrote on 11 Jan 2022, 20:37 last edited by AName 1 Nov 2022, 20:39
    #1

    I'm currently considering Qt widgets for a new project, where I would like to write my own rendering pipeline in Metal. Apple recently released bindings to use Metal from C++. I'm now trying to combine this Metal-cpp example with some of the Qt macOS examples found here.

    The problem I'm running into is that the main boundary between Qt and Metal seems to be MetalKit, which is not wrapped by the Metal-cpp library (only Foundation, Metal and QuartzCore are). There is a QuartzCore/CAMetalDrawable.hpp referencing a CAMetalLayer, which seems the way to go, but I'm unsure of how to use it with a Qt window. Could anyone show/tell me how to setup Metal-cpp such that I can render into a QWindow, or even better, into a single widget?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jhillhouse
      wrote on 21 Mar 2024, 18:27 last edited by
      #2

      Did you ever get an answer to this? I want to use many features of Qt but need to support Metal and it doesn't seem like there is an easy way with Qt widgets.

      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