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