/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{BaseRasterProcessorTechnique as e}from"./BaseRasterProcessorTechnique.js";import{BandArithmeticShader as t}from"../../shaders/raster/processor/BandArithmeticShader.js";class s extends e{constructor(){super(...arguments),this.name="RasterBandArithmeticProcessor",this.type=5,this.shaders={bandArithmetic:new t}}_process(e,t){const s=e.rasterFunction.parameters,r={indexType:s.indexType,isOutputRounded:s.isOutputRounded},n={bandIndexMat3:s.bandIndexMat3},i=s.adjustments?{adjustments:[...s.adjustments]}:void 0,a=this._getCommonConfig(e,t),o={shader:this.shaders.bandArithmetic,uniforms:{config:a,bandArithmeticConfig:n,adjustmentConfig:i},defines:r,optionalAttributes:null,useComputeBuffer:!1},{painter:d,context:u}=e;d.submitDrawMesh(u,o,d.quadMesh)}}export{s as BandArithmeticTechnique};
