import{GLTFLoader as a,ArrayItem as o}from"./glTFLoader-Bp7IfGPK.js";import{aG as d,aH as _}from"./index-CDrXokXW.js";import"./index-DWyDLubb.js";import"./bone-z620UXj2.js";import"./skeleton-3aE04lM6.js";import"./rawTexture-DYLCXHMF.js";import"./assetContainer-D7EiOqw6.js";import"./objectModelMapping-CGWnurZP.js";const r="KHR_texture_basisu";class c{constructor(e){this.name=r,this._loader=e,this.enabled=e.isExtensionUsed(r)}dispose(){this._loader=null}_loadTextureAsync(e,s,n){return a.LoadExtensionAsync(e,s,this.name,async(i,l)=>{const m=s.sampler==null?a.DefaultSampler:o.Get(`${e}/sampler`,this._loader.gltf.samplers,s.sampler),u=o.Get(`${i}/source`,this._loader.gltf.images,l.source);return await this._loader._createTextureAsync(e,m,u,p=>{n(p)},s._textureInfo.nonColorData?{useRGBAIfASTCBC7NotAvailableWhenUASTC:!0}:void 0,!s._textureInfo.nonColorData)})}}d(r);_(r,!0,t=>new c(t));export{c as KHR_texture_basisu};
