An exporter for KTX2.
const exporter = new KTX2Exporter();
const result = await exporter.parse( dataTexture );
KTX2Exporter is an addon, and must be imported explicitly, see Installation#Addons.
import { KTX2Exporter } from 'three/addons/exporters/KTX2Exporter.js';
This method has two variants.
arg1
The data texture to export or a renderer.
arg2
The render target that should be exported
Returns: A Promise that resolves with the exported KTX2.