简体   繁体   English

CoreGraphics会支持Apple设备上的Metal吗?

[英]Will CoreGraphics support Metal on Apple Devices?

I have read that Core Graphics is based on OpenGL ES and uses the Quartz Drawing Engine on Apple devices (iOS, OSX) 我已经读过Core Graphics基于OpenGL ES并在Apple设备上使用Quartz Drawing Engine (iOS,OSX)

However with the upcoming deprecation of OpenGL ES for Metal , will Core Graphics be updated to support Metal and/or software rendering for coming iOS/OSX devices? 然而,随着即将推出的OpenGL ES for Metal的弃用 ,Core Graphics是否会更新以支持即将推出的iOS / OSX设备的金属和/或软件渲染?

First, Core Graphics doesn't "use" Quartz. 首先,Core Graphics不会“使用”Quartz。 "Core Graphics" and "Quartz" are just two names for the same thing. “核心图形”和“石英”只是同一件事的两个名字。 They are equivalent. 它们是等价的。

Second, Apple doesn't promise what technology Core Graphics uses under the hood. 其次,Apple并未承诺Core Graphics使用的技术。 They've occasionally touted the acceleration they were able to accomplish by using some particular technology, but that's marketing — marketing to developers, but marketing nonetheless — not a design contract. 他们偶尔会吹嘘他们通过使用某种特定技术可以实现的加速,但这是营销 - 营销给开发人员,但营销仍然 - 而不是设计合同。 They reserve the right and ability to change how Core Graphics is implemented, and have done so often. 他们保留改变Core Graphics实施方式的权利和能力,并且经常这样做。 Any developer who writes code which depends on the specific implementation is risking having their code break with future updates to the OS. 编写依赖于特定实现的代码的任何开发人员都有可能因为操作系统的未来更新而导致代码中断。 Developers should only rely on the design contract in the documentation and headers. 开发人员应该只依赖文档和标题中的设计合同。

It is very likely that Core Graphics is already using Metal under the hood. Core Graphics很可能已经在使用Metal。 It makes no difference to you as a developer or user whether it is or isn't. 作为开发人员或用户,无论是否存在,都没有任何区别。

Finally, Core Graphics has not been deprecated. 最后,Core Graphics尚未被弃用。 That means that there's no reason to expect it to go away, break, or lose functionality any time soon. 这意味着没有理由期望它很快就会消失,破坏或失去功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM