/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{SizedPixelFormat as s}from"./enums.js";import{TextureDescriptor as e}from"./TextureDescriptor.js";class t extends e{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case s.R16F:case s.R32F:case s.R8_SNORM:case s.R8:this.pixelFormat=6403;break;case s.R8I:case s.R8UI:case s.R16I:case s.R16UI:case s.R32I:case s.R32UI:this.pixelFormat=36244}}static validate(s,e){return new t(s,e)}}export{t as ValidatedTextureDescriptor};
