UNPKG

@loaders.gl/textures

Version:

Framework-independent loaders for compressed and super compressed (basis) textures

10 lines 607 B
import type { TextureFormat } from '@loaders.gl/schema'; import type { GLTextureFormat } from "../gl-types.js"; export declare function getTextureFormatFromWebGLFormat(format?: GLTextureFormat): TextureFormat | undefined; /** * Returns the WebGL/OpenGL compressed texture constant for a canonical loaders.gl texture format. * @param textureFormat - Canonical texture format string. * @returns Matching WebGL/OpenGL constant, if known. */ export declare function getWebGLFormatFromTextureFormat(textureFormat?: TextureFormat): GLTextureFormat | undefined; //# sourceMappingURL=texture-format-map.d.ts.map