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">
16 lines (12 loc) • 535 B
JavaScript
;
var glFormatToGPUFormat = require('./glFormatToGPUFormat.js');
var vkFormatToGPUFormat = require('./vkFormatToGPUFormat.js');
;
function getTextureFormatFromKTXTexture(ktxTexture) {
if (ktxTexture.classId === 2) {
return vkFormatToGPUFormat.vkFormatToGPUFormat(ktxTexture.vkFormat);
}
return glFormatToGPUFormat.glFormatToGPUFormat(ktxTexture.glInternalformat);
}
exports.getTextureFormatFromKTXTexture = getTextureFormatFromKTXTexture;
//# sourceMappingURL=getTextureFormatFromKTXTexture.js.map