write

abstract fun write(layer: Int, buffer: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)

Write to a single layer in the array texture

Parameters

layer

the layer index to write to

buffer

the ByteBuffer from which texture data is read

sourceFormat

the format of the data in buffer

sourceType

the type of the data in buffer