text: import{Texture}from'./Texture.js';import{NearestFilter,UnsignedShortType,UnsignedInt248Type,DepthFormat,DepthStencilFormat}from'../constants.js';function DepthTexture(a,b,c,d,e,f,g,h,i,j){if(j=void 0===j?DepthFormat:j,j!==DepthFormat&&j!==DepthStencilFormat)throw new Error('DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat');void 0===c&&j===DepthFormat&&(c=UnsignedShortType),void 0===c&&j===DepthStencilFormat&&(c=UnsignedInt248Type),Texture.call(this,null,d,e,f,g,h,j,c,i),this.image={width:a,height:b},this.magFilter=void 0===g?NearestFilter:g,this.minFilter=void 0===h?NearestFilter:h,this.flipY=!1,this.generateMipmaps=!1}DepthTexture.prototype=Object.create(Texture.prototype),DepthTexture.prototype.constructor=DepthTexture,DepthTexture.prototype.isDepthTexture=!0;export{DepthTexture};