Type Property

renderTarget

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

Declaration

static var renderTarget: MTLTextureUsage { get }

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

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 for creating texture views.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software