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">
14 lines (11 loc) • 455 B
JavaScript
import { glFormatToGPUFormat } from './glFormatToGPUFormat.mjs';
import { vkFormatToGPUFormat } from './vkFormatToGPUFormat.mjs';
;
function getTextureFormatFromKTXTexture(ktxTexture) {
if (ktxTexture.classId === 2) {
return vkFormatToGPUFormat(ktxTexture.vkFormat);
}
return glFormatToGPUFormat(ktxTexture.glInternalformat);
}
export { getTextureFormatFromKTXTexture };
//# sourceMappingURL=getTextureFormatFromKTXTexture.mjs.map