<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to have Qt interoperate with Metal (using the new Metal-cpp)?]]></title><description><![CDATA[<p dir="auto">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 <a href="https://github.com/bkaradzic/metal-cpp" target="_blank" rel="noopener noreferrer nofollow ugc">this Metal-cpp example</a>  with some of the <a href="https://github.com/msorvig/qt-macos-examples" target="_blank" rel="noopener noreferrer nofollow ugc">Qt macOS examples found here</a>.</p>
<p dir="auto">The problem I'm running into is that the main boundary between Qt and Metal seems to be MetalKit, which is <em>not</em> wrapped by the Metal-cpp library (only Foundation, Metal and QuartzCore are). There is a QuartzCore/CAMetalDrawable.hpp referencing a <a href="https://developer.apple.com/documentation/quartzcore/cametallayer" target="_blank" rel="noopener noreferrer nofollow ugc">CAMetalLayer</a>, 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?</p>
]]></description><link>https://forum.qt.io/topic/133464/how-to-have-qt-interoperate-with-metal-using-the-new-metal-cpp</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 21:17:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/133464.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Jan 2022 20:37:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to have Qt interoperate with Metal (using the new Metal-cpp)? on Thu, 21 Mar 2024 18:27:50 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/post/794099</link><guid isPermaLink="true">https://forum.qt.io/post/794099</guid><dc:creator><![CDATA[jhillhouse]]></dc:creator><pubDate>Thu, 21 Mar 2024 18:27:50 GMT</pubDate></item></channel></rss>