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