词条 | Metal (API) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
释义 |
| name = Metal | logo = Apple Metal logo, version 2.png | screenshot = File:Vainglory Halcyon Fold map.tif | caption = Apple used the mobile multiplayer online battle arena game Vainglory (Halcyon Fold map pictured) to demonstrate Metal's graphics capabilities at the iPhone 6's September 2014 announcement event | developer = Apple Inc. | released = {{start date and age|2014|06}} | latest release version = | latest release date = | programming language = C++14 | operating system = iOS, macOS, tvOS | platform = | genre = 3D graphics and compute API | license = proprietary | website = {{URL|https://developer.apple.com/metal/}} }} Metal is a low-level, low-overhead hardware-accelerated 3D graphic and compute shader application programming interface (API) developed by Apple Inc., and which debuted in iOS 8. Metal combines functions similar to OpenGL and OpenCL under one API. It is intended to bring to iOS, macOS, and tvOS apps some of the performance benefits of similar APIs on other platforms, such as Vulkan (which debuted in mid-February 2016) and DirectX 12. Metal is an object-oriented API that can be invoked using the Swift or Objective-C programming languages. Full-blown control of the Metal framework (as well as the related MetalKit framework) is accessible via the Metal Unified Graphics and Compute Language. According to Apple promotional materials: "Metal is a C++ based programming language that developers can use to write code that is executed on the GPU for graphics and general-purpose data-parallel computations. Since Metal is based on C++, developers will find it familiar and easy to use. With Metal, both graphics and compute programs can be written with a single, unified language, which allows tighter integration between the two."[1] HistoryMetal has been available since June 2, 2014 on iOS devices powered by Apple A7 or later,[2] and since June 8, 2015 on Macs (2012 models or later) running OS X El Capitan.[3] On June 5, 2017 at WWDC, Apple announced the second version of Metal, to be supported by macOS High Sierra, iOS 11 and tvOS 11. Metal 2 is not a separate API from Metal and is supported by the same hardware. Metal 2 enables more efficient profiling and debugging in Xcode, accelerated machine learning, lower CPU workload, support for virtual reality on macOS, and specificities of the Apple A11 GPU, in particular.[4] Supported GPUsOn iOS and tvOS, Metal supports Apple-designed SoCs from the Apple A7 or newer. On macOS, Metal supports Intel HD and Iris Graphics from the HD 4000 series or newer, AMD GCN-based GPUs, and Nvidia Kepler-based GPUs or newer. DesignMetal is designed around principles of modern graphics and compute APIs, such as Vulkan and Direct3D 12, in that instructions are sent to the GPU in command buffers obtained from command queues. Metal improves the capabilities of GPGPU programming by using compute shaders. Metal uses a specific shading language based on C++14; this is implemented using Clang and LLVM.[5] PerformanceMetal should have better performance than OpenGL, for several reasons:
Some of these points reduce the amount of work the CPU is required to do to successfully execute commands on the GPU. This can lead to overall performance gain because the CPU can then be used to compute other tasks. AdoptionAccording to Apple, more than 148,000 applications use Metal directly, and 1.7 million use it through high-level frameworks, as of June 2017.[7] Presumably, most of these are applications and games on iOS. Notable macOS games using Metal for rendering are listed below.
See also
References1. ^{{cite web|last1=Apple Inc.|title=Metal Shading Language Specification |url=https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf}} 2. ^{{Cite web |url=https://arstechnica.com/apple/2014/06/apple-gets-heavy-with-gaming-announces-metal-development-platform/ |title=Apple gets heavy with gaming, announces Metal development platform |work=Ars Technica |publisher=Condé Nast |date=2 June 2014 |first=Same |last=Machkovech}} 3. ^{{Cite web |url=https://www.apple.com/pr/library/2015/06/08Apple-Announces-OS-X-El-Capitan-with-Refined-Experience-Improved-Performance.html |title=Apple Announces OS X El Capitan with Refined Experience & Improved Performance |work=Newsroom |publisher=Apple |date=8 June 2015 |location=San Francisco |first=Colin |last=Smith |first2=Starlayne |last2=Meza}} 4. ^{{cite web |title=Archived copy of the Metal homepage, November 2017 |url=https://developer.apple.com/metal/ |website=Apple Developer |publisher=Apple |via=Wayback Machine |date=20 November 2017 |deadurl=bot: unknown |archiveurl=https://web.archive.org/web/20171120014933/https://developer.apple.com/metal/ |archivedate=November 20, 2017 |df=mdy-all }} 5. ^{{cite web|url=https://developer.apple.com/library/prerelease/ios/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014364|title=Metal Shading Language Guide|date=September 8, 2014|publisher=|accessdate=September 10, 2014}} 6. ^{{Cite news|url=http://blogs.unity3d.com/2014/07/03/metal-a-new-graphics-api-for-ios-8/|title=Metal, a new graphics API for iOS 8 – Unity Blog|work=Unity Technologies Blog|access-date=2017-06-16|language=en-US}} 7. ^{{cite web|last1=Apple Inc.|title=WWDC 2017 Platforms State of the Union|url=https://developer.apple.com/videos/play/wwdc2017/102/}} 8. ^{{Cite news|url=http://news.softpedia.com/news/vulkan-support-is-finally-coming-to-apple-s-macos-and-ios-operating-systems-519958.shtml|title=Vulkan Support Is Finally Coming to Apple's macOS & iOS to Make Games Run Faster|last=Nestor|first=Marius|work=softpedia|access-date=2018-02-28|language=en-us}} 9. ^{{cite web|url=https://www.phoronix.com/scan.php?page=news_item&px=Dota-2-Initial-Mac-Vulkan|title=Initial Vulkan Performance On macOS With Dota 2 Is Looking Very Good|last=Larabel|first=Michael|publisher=Phoronix|date=June 1, 2018|accessdate=June 5, 2018}} 10. ^{{cite tweet |last=Kondrak |first=Krzysztof| user=k_kondrak |number=1094192063292297217 |date=January 9, 2019 |title=vkQuake2 gets MacOS support |access-date=February 9, 2019}} }} External links
4 : Computer-related introductions in 2014|3D graphics APIs|Graphics libraries|IOS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。