@loaders.gl/textures
Version:
Framework-independent loaders for compressed and super compressed (basis) textures
17 lines • 929 B
TypeScript
import type { TextureFormat } from '@loaders.gl/schema';
import type { GLTextureFormat } from "../gl-types.js";
/**
* Returns WebGl format based on Vulkan format
* Vulkan to WebGl format mapping provided here http://github.khronos.org/KTX-Specification/#formatMapping
* Vulkan name to format number mapping provided here: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkFormat.html
* @param vkFormat
* @returns WebGL / OpenGL constant
*/
export declare function mapVkFormatToWebGL(vkFormat: number): GLTextureFormat | undefined;
/**
* Returns the canonical loaders.gl texture format corresponding to a Vulkan `vkFormat` value.
* @param vkFormat - Vulkan format constant from the KTX container.
* @returns Canonical texture format string, if known.
*/
export declare function mapVkFormatToTextureFormat(vkFormat: number): TextureFormat | undefined;
//# sourceMappingURL=ktx-format-helper.d.ts.map