1

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?

1 Answer 1

3

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".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.