upload

abstract fun upload(offset: Int = 0, size: Int = shaderStorageBuffer.format.size)(source)

Uploads data to the shader storage buffer. This method allows specifying the offset and size of the data to be uploaded.

Parameters

offset

The starting offset within the buffer where the upload begins. Defaults to 0.

size

The size of the data to be uploaded, in bytes. Defaults to the size of the buffer's format.