KHR_texture_basisu.d.ts 977 B

12345678910111213141516171819202122232425
  1. import type { IGLTFLoaderExtension } from "../glTFLoaderExtension";
  2. import { GLTFLoader } from "../glTFLoader";
  3. import type { ITexture } from "../glTFLoaderInterfaces";
  4. import type { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
  5. import type { Nullable } from "@babylonjs/core/types.js";
  6. /**
  7. * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_texture_basisu/README.md)
  8. */
  9. export declare class KHR_texture_basisu implements IGLTFLoaderExtension {
  10. /** The name of this extension. */
  11. readonly name = "KHR_texture_basisu";
  12. /** Defines whether this extension is enabled. */
  13. enabled: boolean;
  14. private _loader;
  15. /**
  16. * @internal
  17. */
  18. constructor(loader: GLTFLoader);
  19. /** @internal */
  20. dispose(): void;
  21. /**
  22. * @internal
  23. */
  24. _loadTextureAsync(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
  25. }