FloatBuffer

inline fun FloatBuffer(size: Int, init: (Int) -> Float): FloatBuffer

Creates a new FloatBuffer with the specified size, where each element is calculated by calling the specified init function.

The function init is called for each array element sequentially starting from the first one. It should return the value for a buffer element given its index.

fun FloatBuffer(vararg floats: Float): FloatBuffer

Returns a new FloatBuffer of given elements.