Instance Property

depthPlane

The depth plane of the texture used for rendering to the attachment.

Declaration

var depthPlane: Int { get set }

Discussion

If the texture is not a 3D texture, then this property is ignored.

The default value is 0.

See Also

Specifying the Texture for the Attachment

var texture: MTLTexture?

The texture object associated with this attachment.

var level: Int

The mipmap level of the texture used for rendering to the attachment.

var slice: Int

The slice of the texture used for rendering to the attachment.

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