Instance Property

texture

A Metal texture object representing the drawable object’s content.

Required.

Declaration

var texture: MTLTexture { get }

Discussion

Use this object to configure a MTLRenderPipelineColorAttachmentDescriptor object for rendering to the drawable object’s content.

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