/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{BaseRasterProcessorTechnique as s}from"./BaseRasterProcessorTechnique.js";import{CompositeBandShader as t}from"../../shaders/raster/processor/CompositeBandShader.js";class e extends s{constructor(){super(...arguments),this.name="RasterCompositeBandProcessor",this.type=6,this.shaders={compositeBand:new t}}_process(s,t){const{rasters:e}=s.rasterFunction.parameters,o={constantCount:this._getConstantCount(e),imageCount:e?.length??1},r=this._getMultipleInputConfig(t,e),n=this._getCommonConfig(s,t),a={shader:this.shaders.compositeBand,uniforms:{config:n,...r},defines:o,optionalAttributes:null,useComputeBuffer:!1},{painter:i,context:p}=s;i.submitDrawMesh(p,a,i.quadMesh)}}export{e as CompositeBandTechnique};
