/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{BaseRasterProcessorTechnique as s}from"./BaseRasterProcessorTechnique.js";import{GrayscaleShader as e}from"../../shaders/raster/processor/GrayscaleShader.js";class r extends s{constructor(){super(...arguments),this.name="RasterGrayscaleProcessor",this.type=13,this.shaders={grayscale:new e}}_process(s,e){const r={weights:s.rasterFunction.parameters.weights},{config:t,textures:a}=this._getCommonConfig(s,e),o={shader:this.shaders.grayscale,uniforms:{config:t,grayscaleConfig:r},textures:a,defines:{},optionalAttributes:null,useComputeBuffer:!1},{painter:i,context:n}=s;i.submitDrawMesh(n,o,i.quadMesh)}}export{r as GrayscaleTechnique};
