What happened to 'makeTextureView(pixelFormat:textureType:levels:slices:)' in ios11?

while upgrading my iOS app from ios10 to ios11 I get the following error:


'makeTextureView(pixelFormat:textureType:levels:slices:)' has been renamed to '__newTextureView(with:textureType:levels:slices:)'


I cannot find any documentation about this change. While the app compiles when I use the __newTextureView function, it will crash at some point (looks like after a CIImage created from that texture view is released)


Anybody knows what happened to 'makeTextureView(pixelFormat:textureType:levels:slices:)'?

Replies

Bump? I really need to get a texture pounter to an element of a texture array!

Oh! It appears that this metod is a method of a constructed texture object. I must admit I find that a bit odd considering it asks you for the pixel format which the object should already know.

Nothing odd with that. It lets you to “reuse” texture memory so to speak. For example you need two different intermediate textures, with different pixel formats, but not at the same time. If you can do with one texture plus one view of said texture, you can cut memory costs.