Instance Property

colorspace

The color space of the rendered content.

Declaration

var colorspace: CGColorSpace? { get set }

Discussion

Set this value to allow the rendered content to be color-matched to the color space of the context containing this layer (which is typically the display’s color space).

The default value is nil, indicating that the rendered content is not color-matched.

See Also

Configuring a Metal Layer

var device: MTLDevice?

The Metal device responsible for the layer’s drawable resources.

var pixelFormat: MTLPixelFormat

The pixel data format of textures for rendering layer content.

var framebufferOnly: Bool

A Boolean value that determines whether the layer’s textures are restricted for use as framebuffer attachments.

var drawableSize: CGSize

The size, in pixels, of textures for rendering layer content.