/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{BaseRasterProcessorTechnique as s}from"./BaseRasterProcessorTechnique.js";import{StretchShader as e}from"../../shaders/raster/processor/StretchShader.js";class t extends s{constructor(){super(...arguments),this.name="RasterStretchProcessor",this.type=24,this.shaders={stretch:new e}}_process(s,e){const t=s.rasterFunction.parameters,r={isMultiband:t.bandCount>1,isOutputRounded:t.isOutputRounded,useGamma:t.useGamma},{config:o,textures:a}=this._getCommonConfig(s,e),n={shader:this.shaders.stretch,uniforms:{config:o,stretchConfig:t},textures:a,defines:r,optionalAttributes:null,useComputeBuffer:!1},{painter:u,context:i}=s;u.submitDrawMesh(i,n,u.quadMesh)}}export{t as StretchTechnique};
