aside

fun Layer.aside(colorType: ColorType = this.colorType, multisample: BufferMultisample = BufferMultisample.Disabled, function: Layer.() -> Unit): Layer(source)

Creates a new Layer of type ASIDE as a child of the current layer, applies the specified function to configure it, and returns the created layer.

Return

The newly created Layer of type ASIDE.

Parameters

colorType

The color type for the new layer. Defaults to the color type of the parent layer.

multisample

Multisampling configuration for the new layer. Defaults to BufferMultisample.Disabled.

function

Configuration function applied to the newly created layer.