Writes out the KTX file into destination, which must hold serializedLength bytes; false if it's too small.