Enumeration Case


An option for a texture whose usage is unknown.


MTLTextureUsageUnknown = 0x0000


Set this option if you’re not sure how your app uses the given texture, but you want to be able to use it in many ways. This might be the case if you have multiple code paths and it’s unclear how your app specifically uses the texture at runtime.

This is the most flexible usage option for a texture, but it incurs a significant performance cost. Metal can’t optimize operations for the texture if you don’t set specific usage options.

In iOS devices with GPU family 5, Metal doesn’t apply lossless compression to the given texture if you set this option.

See Also

Specifying Texture Usage Options


An option for reading or sampling from the texture in a shader.


An option for writing to the texture in a shader.


An option for rendering to the texture in a render pass.


An option for creating texture views.