Type Property


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


static var renderTarget: MTLTextureUsage { get }


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

static var unknown: MTLTextureUsage

An option for a texture whose usage is unknown.

static var shaderRead: MTLTextureUsage

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

static var shaderWrite: MTLTextureUsage

An option for writing to the texture in a shader.

static var pixelFormatView: MTLTextureUsage

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