writeBuffer

fun writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset: GPUSize64 = definedExternally, size: GPUSize64 = definedExternally)(source)

MDN Reference