apply

fun apply(source0: ColorBuffer, source1: ColorBuffer, target: ColorBuffer, clip: Rectangle? = null)(source)

Applies a shader-based operation to two input color buffers and writes the result to a target color buffer.

Parameters

source0

The first input color buffer that will be used in the operation.

source1

The second input color buffer that will be used in the operation.

target

The target color buffer where the result of the operation will be written.

clip

An optional rectangle defining the region of interest for the operation. If null, the entire buffer is used.