/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{BaseRasterProcessorTechnique as s}from"./BaseRasterProcessorTechnique.js";import{NDVIShader as e}from"../../shaders/raster/processor/NDVIShader.js";class r extends s{constructor(){super(...arguments),this.name="RasterNDVIProcessor",this.type=17,this.shaders={ndvi:new e}}_process(s,e){const r=s.rasterFunction.parameters,t={scaled:r.scaled},o={bandIndexMat3:r.bandIndexMat3},{config:n,textures:a}=this._getCommonConfig(s,e),i={shader:this.shaders.ndvi,uniforms:{config:n,ndviConfig:o},textures:a,defines:t,optionalAttributes:null,useComputeBuffer:!1},{painter:d,context:c}=s;d.submitDrawMesh(c,i,d.quadMesh)}}export{r as NDVITechnique};
