Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Compiles one source texture into an uncompressed KTX artifact with a complete mip chain.

API: engine
Project: Inno.Rendering.Assets.Authoring

System.Threading.Tasks.ValueTask<byte[]> Inno.Rendering.Assets.Authoring.ITextureTargetCompiler.CompileKtxAsync(System.IO.Stream source, Inno.Rendering.Assets.TextureColorSpace colorSpace, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Parameter source: Borrowed encoded image stream retained by the caller until compilation completes.

Parameter colorSpace: Sampling color-space contract.

Parameter cancellationToken: Cancellation for the offline compiler process.

An operation producing complete KTX bytes suitable for a backend-neutral texture container upload.

Exception T:System.InvalidOperationException: Thrown when the target compiler rejects the source.