Upload
class Upload(val ptr: NativePointer, val size: Int, val callback: NativePointer, val userData: NativePointer)
size bytes of an array handed to an asynchronous set*Buffer/setImage: pass all four fields to the C call. Filament's release callback drops the copy (unpins on Native), then runs the upload's onRelease.