put

expect abstract fun put(elementOffset: Int = 0, putter: BufferWriter.() -> Unit): Int(source)

Writes data to the shader storage buffer starting at the specified element offset.

Return

The number of elements written to the buffer.

Parameters

elementOffset

The offset (in elements) within the buffer where writing should begin. Defaults to 0 if not specified.

putter

A lambda expression that defines the data to write to the buffer. It provides a BufferWriterStd430 context for writing the desired data to the buffer.

actual abstract fun put(elementOffset: Int, putter: BufferWriter.() -> Unit): Int(source)
actual abstract fun put(elementOffset: Int, putter: BufferWriter.() -> Unit): Int(source)