interleave

fun interleave(buffers: Array<ZBuffer>)(source)

Interleaves multiple ZBuffers by combining their data arrays into a single buffer. Each buffer's stride and offset are updated to reflect the interleaved layout. All buffers must have the same count of elements.

Parameters

buffers

List of ZBuffers to interleave

Throws

if buffers have different counts or if the list is empty