Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get programmatically the maximum texture size (width and height)

How to get programmatically the maximum texture size (width and height) with metal? with openGL i can do: glGetIntegerv(GL_MAX_TEXTURE_SIZE, ...) but how to do it with Metal ?

like image 663
zeus Avatar asked Jan 25 '23 17:01

zeus


1 Answers

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.

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

like image 117
warrenm Avatar answered Jan 30 '23 02:01

warrenm