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