session
write the contents from sourceBuffer to the ColorBuffer, potentially with format and type conversions
The sourceBuffer should be allocated using ByteBuffer.allocateDirect and have an amount of remaining bytes that matches with the dimensions, sourceFormat and sourceType.
Parameters
sourceBuffer
a ByteBuffer holding raw image data
sourceFormat
the ColorFormat that is used for the image data stored in sourceBuffer, default is ColorBuffer.format
sourceType
the ColorType that is used for the image data stored in sourceBuffer, default is ColorBuffer.type
level
the mipmap-level of ColorBuffer to write to