writeBuffer

fun writeBuffer(buffer: GPUBuffer, offset: Int, dataArray: Any)(source)

Writes buffer data to the GPU.

Parameters

destination

The destination buffer

bufferSource

The source data to write

bufferSize

Optional size of the buffer