TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Metal – Apple’s new graphics API

343 pointsby oflordalalmost 11 years ago

16 comments

klodolphalmost 11 years ago
Anything that provides access to GPU command queues is welcome. It&#x27;s been clear for a while that OpenGL and D3D are ill-suited to modern ways about thinking about GPUs. This also explicitly supports multithreaded clients, each with their own command queues.<p><a href="https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Conceptual/MTLProgGuide/Cmd-Submiss/Cmd-Submiss.html#//apple_ref/doc/uid/TP40014221-CH3-SW1" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;prerelease&#x2F;ios&#x2F;documenta...</a><p>The shading language appears to be precompiled (which is sorely missing from OpenGL) and based somewhat on C++11.<p><a href="https://developer.apple.com/library/prerelease/ios/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014364" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;prerelease&#x2F;ios&#x2F;documenta...</a><p>My concern is drivers: drivers for video cards on OS X haven&#x27;t been as good as Windows drivers. That, and of course the specter of another platform-specific API. This invites a comparison with Mantle. I don&#x27;t think either Metal or Mantle will &quot;win&quot;, but they&#x27;re good prototypes for the next generation of GPU APIs.
评论 #7836242 未加载
jarrettalmost 11 years ago
It&#x27;s somewhat scary to see new graphics APIs being introduced.<p>The fragmentation of OpenGL is enough of a headache, but at least it offers some semblance of &quot;write once, run anywhere.&quot; The introduction of Mantle and Metal, plus the longstanding existence of Direct3d, makes me worry that OpenGL will get no love. And then we&#x27;ll have to write our graphics code, three, four, or goodness knows how many times.<p>I know: It&#x27;s not realistic to expect &quot;write once, run anywhere&quot; for any app that pushes the capabilities of the GPU. But what about devs like me (of whom there are many) that aren&#x27;t trying to achieve AAA graphics, but just want the very basics? For us, &quot;write once, run anywhere&quot; is very attractive and <i>should</i> be possible. I can do everything I want with GL 2.1, I don&#x27;t need to push a massive number of polys, I don&#x27;t need a huge textures, and I don&#x27;t need advanced lighting.
评论 #7836773 未加载
评论 #7836657 未加载
评论 #7836684 未加载
评论 #7839138 未加载
评论 #7836810 未加载
评论 #7838098 未加载
评论 #7837863 未加载
higherpurposealmost 11 years ago
You can thank AMD for this one. This is exactly why I supported Mantle initially - not necessarily because I thought Mantle will replace DirectX and OpenGL, but because it would push all the others to adopt similar changes to their APIs.<p>And this is exactly what happened, first OpenGL (through AMD&#x27;s extension for now at least), then Microsoft with DirectX 12 [1], and now Apple, too.<p>Before you get <i>too</i> excited, though, remember Mantle &quot;only&quot; improved the overall performance of Battlefield 4 by about 50%. It can probably get better than that, but don&#x27;t expect &quot;10x&quot; improvement or anything close to it.<p>[1] - <a href="http://semiaccurate.com/2014/03/18/microsoft-adopts-mantle-calls-dx12/" rel="nofollow">http:&#x2F;&#x2F;semiaccurate.com&#x2F;2014&#x2F;03&#x2F;18&#x2F;microsoft-adopts-mantle-c...</a><p><a href="http://hothardware.com/News/New-Reports-Claim-Microsofts-DirectX-Rips-Off-Mantle-Wont-Help-Xbox-One--But-Is-It-True-/" rel="nofollow">http:&#x2F;&#x2F;hothardware.com&#x2F;News&#x2F;New-Reports-Claim-Microsofts-Dir...</a>
评论 #7836489 未加载
评论 #7836357 未加载
评论 #7837157 未加载
评论 #7839627 未加载
coldcodealmost 11 years ago
This to me is more surprising than Swift. But it will make for difficult platform decisions. But since there are 4 game platforms already working on it (Unreal hasn&#x27;t committed) maybe it&#x27;s not a bad idea at all.
评论 #7836338 未加载
pjmlpalmost 11 years ago
So OpenGL seems to loose support on the platform that helped to make it relevant again.
评论 #7836204 未加载
评论 #7836177 未加载
oneofthosealmost 11 years ago
This seems to be Apple&#x27;s answer to Google&#x27;s RenderScript. It is too bad big companies (Google, Apple) are developing their own GPU software stack instead of building upon and furthering existing frameworks such as OpenCL. OpenCL desperately needs a kick in order to catch up with CUDA. Instead they are focusing on things like SyCL, hoping to catch up with already superior projects such as C++AMP. OpenCl should rather fix their poor specification and get implementers on the same page about it. The mobile community could have been a driving force. Instead, frustrated with what OpenCL is, mobile decided to roll their own. As always.
评论 #7839312 未加载
corysamaalmost 11 years ago
Any mention of hardware requirements? I&#x27;m betting this is 5s&#x2F;Air-only. But, I&#x27;d love to be wrong.
评论 #7836720 未加载
syjeralmost 11 years ago
This one is quite surprising. I would have guessed that given the pervasive use of opengl(es) in their os, they would have advanced a azdo approach ( as described in <a href="http://www.slideshare.net/CassEveritt/approaching-zero-driver-overhead" rel="nofollow">http:&#x2F;&#x2F;www.slideshare.net&#x2F;CassEveritt&#x2F;approaching-zero-drive...</a> ).
评论 #7837197 未加载
abdophotoalmost 11 years ago
This has to be a move towards the development of games on an Apple TV.
评论 #7838726 未加载
toksaitovalmost 11 years ago
Judging by what we have it looks usable not only for graphics. Finally we got OpenCL on iOS. Kind of
general_failurealmost 11 years ago
Does this mean now that xplatform graphics code will be a thing of the past?
评论 #7838502 未加载
vacrialmost 11 years ago
Another framework, another needlessly generic word to play havoc with search.
shmerlalmost 11 years ago
Key questions:<p>1. Is it open and cross platform?<p>2. Is it going to be supported across all GPU vendors?<p>If either of those is no, than it&#x27;s a failure from the start and just another walled garden thing.
评论 #7836915 未加载
评论 #7836883 未加载
评论 #7836957 未加载
评论 #7837281 未加载
评论 #7836885 未加载
pekkalmost 11 years ago
Yet another special Apple-only lockin mechanism.
评论 #7837876 未加载
chrismorganalmost 11 years ago
I hate pages that deliberately break the functionality of the Space bar.
评论 #7846053 未加载
评论 #7838425 未加载
ausjkealmost 11 years ago
Saw lots of HN news on Apple, I own absolutely no Apple devices, as I think while them are well made, the software ecosystem coming with it is similar to whatever Microsoft had before, i.e. essentially closed, and that is important to me, it made me to own zero Apple devices.<p>Am I alone here? I&#x27;m running Linux everywhere from home to my office for years, and my tablet&#x2F;cellphone is Android-based.
评论 #7837610 未加载
评论 #7841043 未加载
评论 #7838060 未加载