asyncCreate

Creates a texture without transcoding it yet, so mipmap levels can be populated asynchronously; data is copied. Returns null if none of the requested formats can be extracted from it.

val async = reader.asyncCreate(data, TransferFunction.LINEAR)!!
val texture = async.texture
async.doTranscoding() // from any thread
async.uploadImages() // from the foreground thread
reader.asyncDestroy(async)