简体   繁体   中英

What is the difference between depth and arrayLength in MTLTexture of iOS Metal

The document says: "For 1D, 2D, and cube textures, the depth value is 1". But in an MTLTexture of type 2DArray, isn't the depth also 1?

Yes. For purposes of that documentation, a 2DArray texture falls under 2D textures. (It's conceptually an array of 2D textures, all of whose depth is 1.) It's a roundabout way of saying "For non-3D textures, the depth value is 1".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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