【问题标题】:Is UIKit still using OpenGL rendering in 2020?2020 年 UIKit 还在使用 OpenGL 渲染吗?
【发布时间】:2020-11-28 04:48:11
【问题描述】:

我想弄清楚UIkit是如何渲染的,但是我搜索的时候,我只找到了一些文章,声称UIkit使用OpenGL来指挥GPU。苹果早就放弃了对OpenGL的支持,我猜这些文章可能已经过时了(应该是Metal之类的吧?)。

如果我想了解这个,我应该阅读哪些官方文档,在搜索引擎中搜索哪些关键字?

【问题讨论】:

    标签: ios swift cocoa uikit


    【解决方案1】:

    UIKit 建立在 Core Animation 之上。每个视图都有一个CALayer,这就是屏幕上的内容。根据this page,Core Animation 现在使用 Metal 和 CoreGraphics,documentation page for the Core Animation 引用了它。

    【讨论】:

      猜你喜欢
      • 2020-07-17
      • 1970-01-01
      • 1970-01-01
      • 2012-08-25
      • 1970-01-01
      • 1970-01-01
      • 2013-12-13
      • 1970-01-01
      • 2011-09-11
      相关资源
      最近更新 更多