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