MTLTextureUsage

An enumeration for the various options that determine how you can use a texture.

Values

ValueMeaning
Unknown0x0000

An enumeration for the various options that determine how you can use a texture.

ShaderRead0x0001

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

ShaderWrite0x0002

An option for writing to the texture in a shader.

RenderTarget0x0004

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

PixelFormatView0x0010

An option to create texture views with a different component layout.

Meta