sdfsdfs
This commit is contained in:
13
node_modules/pixi.js/lib/compressed-textures/ktx2/utils/getTextureFormatFromKTXTexture.mjs
generated
vendored
Normal file
13
node_modules/pixi.js/lib/compressed-textures/ktx2/utils/getTextureFormatFromKTXTexture.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { glFormatToGPUFormat } from './glFormatToGPUFormat.mjs';
|
||||
import { vkFormatToGPUFormat } from './vkFormatToGPUFormat.mjs';
|
||||
|
||||
"use strict";
|
||||
function getTextureFormatFromKTXTexture(ktxTexture) {
|
||||
if (ktxTexture.classId === 2) {
|
||||
return vkFormatToGPUFormat(ktxTexture.vkFormat);
|
||||
}
|
||||
return glFormatToGPUFormat(ktxTexture.glInternalformat);
|
||||
}
|
||||
|
||||
export { getTextureFormatFromKTXTexture };
|
||||
//# sourceMappingURL=getTextureFormatFromKTXTexture.mjs.map
|
Reference in New Issue
Block a user