Skip to content

Commit

Permalink
KTX2Loader: Add parse() method for direct buffer processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Aug 16, 2024
1 parent 4591ab0 commit e196a26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/three/examples/jsm/loaders/KTX2Loader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export class KTX2Loader extends Loader<CompressedTexture> {
*/
detectSupport(renderer: WebGLRenderer | WebGPURenderer): this;

init(): Promise<void>;

parse(buffer: ArrayBuffer, onLoad?: (texture: CompressedTexture) => void, onError?: (err: unknown) => void): void;

/**
* Disposes the loader object, de-allocating any Web Workers created.
*/
Expand Down

0 comments on commit e196a26

Please sign in to comment.