/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{Technique as e}from"../Technique.js";import{ClipShader as s}from"../shaders/ClipShader.js";class t extends e{constructor(){super(...arguments),this.type=8,this.shaders={clip:new s}}render(e,s){const{context:t,painter:i,state:r}=e,o=s.getMesh(t,r);if(!o)return;i.setPipelineState({color:!1,depth:!1,stencil:{write:{mask:255},test:{compare:519,op:{fail:7680,zFail:7680,zPass:7681},mask:255}}});const a={shader:this.shaders.clip,uniforms:{options:{displayViewMat3:e.state.displayMat3}},defines:void 0,optionalAttributes:void 0,useComputeBuffer:!1};i.submitDrawMesh(t,a,o,{stencilRef:0})}}const i=new t;export{i as clipTechnique};
