{"id":36898,"date":"2022-09-01T17:10:11","date_gmt":"2022-09-01T21:10:11","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36898"},"modified":"2022-09-01T17:10:11","modified_gmt":"2022-09-01T21:10:11","slug":"clip-control-on-the-apple-gpu","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/09\/01\/clip-control-on-the-apple-gpu\/","title":{"rendered":"Clip Control on the Apple GPU"},"content":{"rendered":"<p><a href=\"https:\/\/rosenzweig.io\/blog\/asahi-gpu-part-6.html\">Alyssa Rosenzweig<\/a>:<\/p>\n<blockquote cite=\"https:\/\/rosenzweig.io\/blog\/asahi-gpu-part-6.html\">\n<p>Here&rsquo;s a little secret: there are two graphics APIs called &ldquo;Metal&rdquo;. There&rsquo;s the Metal you know, a limited API that Apple documents for App Store developers, an API that lacks useful features supported by OpenGL and Vulkan.<\/p>\n<p>And there&rsquo;s the Metal that Apple uses themselves, an internal API adding back features that Apple doesn&rsquo;t want you using. While ANGLE implements OpenGL ES on the documented Metal, Apple can implement OpenGL on the secret Metal.<\/p>\n<p>[&#8230;]<\/p>\n<p>Compared to the desktop GPUs found in Intel Macs, Apple&rsquo;s own GPU implements a slim, modern feature set mapping well to Metal. Most of the &ldquo;extra&rdquo; functionality is emulated.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/05\/24\/the-apple-gpu-and-the-impossible-bug\/\">The Apple GPU and the Impossible Bug<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/01\/11\/dissecting-the-apple-m1-gpu\/\">Dissecting the Apple M1 GPU<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/07\/30\/discontinuation-of-mac-support-for-autodesk-alias-and-vred\/\">Discontinuation of Mac Support for Autodesk Alias and VRED<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/06\/07\/removed-in-macos-10-14-mojave\/\">Removed in macOS 10.14 Mojave<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2014\/06\/06\/metal\/\">Metal<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Alyssa Rosenzweig: Here&rsquo;s a little secret: there are two graphics APIs called &ldquo;Metal&rdquo;. There&rsquo;s the Metal you know, a limited API that Apple documents for App Store developers, an API that lacks useful features supported by OpenGL and Vulkan. And there&rsquo;s the Metal that Apple uses themselves, an internal API adding back features that Apple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-09-01T21:10:14Z","apple_news_api_id":"4209abb4-b1b6-4e85-a7a1-f960f1b06870","apple_news_api_modified_at":"2022-09-01T21:10:14Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AQgmrtLG2ToWnoflg8bBocA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[2014,448,30,2077,906,440,1013,71],"class_list":["post-36898","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-apple-m1","tag-linux","tag-mac","tag-macos-12","tag-metal","tag-opengl","tag-private-api","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=36898"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36898\/revisions"}],"predecessor-version":[{"id":36899,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36898\/revisions\/36899"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}