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