且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式获取最大纹理大小(宽度和高度)

更新时间:2023-02-12 18:43:32

当前没有用于检索Metal设备最大纹理尺寸的API.您应该参考金属功能集表,并而是将其添加到您的应用中.

There is currently no API for retrieving the maximum texture dimensions of a Metal device. You should consult the Metal Feature Set Tables for this information and include it in your app instead.

对于运行当前版本的iOS/tvOS/iPadOS的A9和更新的GPU,2D纹理的最大大小为16384×16384.

For A9 and newer GPUs running current versions of iOS/tvOS/iPadOS, the maximum size of a 2D texture is 16384×16384.