pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
1 lines • 912 B
Source Map (JSON)
{"version":3,"file":"getTextureFormatFromKTXTexture.mjs","sources":["../../../../src/compressed-textures/ktx2/utils/getTextureFormatFromKTXTexture.ts"],"sourcesContent":["import { glFormatToGPUFormat } from './glFormatToGPUFormat';\nimport { vkFormatToGPUFormat } from './vkFormatToGPUFormat';\n\nimport type { COMPRESSED_TEXTURE_FORMATS, KTXTexture } from '../types';\n\n/**\n * @param ktxTexture\n * @internal\n */\nexport function getTextureFormatFromKTXTexture(ktxTexture: KTXTexture): COMPRESSED_TEXTURE_FORMATS\n{\n if (ktxTexture.classId === 2)\n {\n return vkFormatToGPUFormat(ktxTexture.vkFormat);\n }\n\n return glFormatToGPUFormat(ktxTexture.glInternalformat);\n}\n"],"names":[],"mappings":";;;;AASO,SAAS,+BAA+B,UAC/C,EAAA;AACI,EAAI,IAAA,UAAA,CAAW,YAAY,CAC3B,EAAA;AACI,IAAO,OAAA,mBAAA,CAAoB,WAAW,QAAQ,CAAA,CAAA;AAAA,GAClD;AAEA,EAAO,OAAA,mBAAA,CAAoB,WAAW,gBAAgB,CAAA,CAAA;AAC1D;;;;"}