Numeric Array
Types
Link copied to clipboard
Link copied to clipboard
class Floats(val array: FloatArray, val byteCount: Int = array.size * Float.SIZE_BYTES) : NumericArray
Link copied to clipboard
Link copied to clipboard
Zero-copy upload from an IntList: the backing array may be larger than list.size, so byteCount (and the GL backend, given a correct size argument) bounds the upload. Avoids the IntList.toIntArray copy the eager Ints variant would force.
Link copied to clipboard
class Shorts(val array: ShortArray, val byteCount: Int = array.size * Short.SIZE_BYTES) : NumericArray