Enumeration Case

MTLTextureUsageRenderTarget

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

Declaration

MTLTextureUsageRenderTarget = 0x0004

Discussion

Set this option if you use the given texture as a color, depth, or stencil render target in any render pass. This option allows you to assign the texture to the texture property of a MTLRenderPassAttachmentDescriptor.

See Also

Specifying Texture Usage Options

MTLTextureUsageUnknown

An option for a texture whose usage is unknown.

MTLTextureUsageShaderRead

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

MTLTextureUsageShaderWrite

An option for writing to the texture in a shader.

MTLTextureUsagePixelFormatView

An option for creating texture views.