/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as s,input as i,FragmentInput as n,VertexInput as l,UniformGroup as a}from"../../GraphShaderModule.js";import{Vec3 as d,Vec4 as y,Vec2 as m,Mat3 as u}from"../../graph/glsl.js";class x extends l{}t([p(0,m)],x.prototype,"pos",void 0);class c extends a{}t([s(u)],c.prototype,"displayViewMat3",void 0);class f extends e{constructor(){super(...arguments),this.type="ClipShader"}vertex(t){const o=this.options.displayViewMat3.multiply(new d(t.pos.xy,1));return{glPosition:new y(o.xy,0,1)}}fragment(t){const o=new r;return o.fragColor=new y(1,0,0,1),o}}t([s(c)],f.prototype,"options",void 0),t([o(0,i(x))],f.prototype,"vertex",null),t([o(0,i(n))],f.prototype,"fragment",null);export{x as ClipInput,f as ClipShader};
