MappedFloats

value class MappedFloats(source)

Mapped transfer-buffer memory, addressed as 32-bit floats. Valid until GpuDevice.unmap. The setters inline to plain stores, so filling a buffer allocates nothing.

Functions

Link copied to clipboard
inline operator fun set(index: Int, value: Float)

Writes value at float index. No bounds check: the caller owns the buffer size.

Link copied to clipboard
open override fun toString(): String