/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["require","exports","../../../../../chunks/_rollupPluginBabelHelpers","../../core/shaderTechnique/ReloadableShaderModule","../../core/shaderTechnique/ShaderTechnique","../Program","./bufferLayouts","../../../../../chunks/EdgeShader.glsl","../../../../webgl/enums","../../../../webgl/renderState"],(function(e,r,t,n,a,i,o,d,l,u){"use strict";let s=function(e){function r(){return e.apply(this,arguments)||this}t._inheritsLoose(r,e);var n=r.prototype;return n.initializeProgram=function(e){const t=r.shader.get().build(this.configuration);return new i.Program(e.rctx,t,o.EdgeShaderAttributeLocations)},n.initializePipeline=function(e){return e.blendMinMax?u.makePipelineState({blending:u.separateBlendingParams(l.BlendFactor.ONE,l.BlendFactor.ONE,l.BlendFactor.ZERO,l.BlendFactor.ONE,l.BlendOperation.ADD,e.blendMinMax.MAX),depthTest:{func:l.CompareFunction.LEQUAL},colorWrite:u.defaultColorWriteParams}):u.makePipelineState({depthTest:{func:l.CompareFunction.LEQUAL},depthWrite:u.defaultDepthWriteParams,colorWrite:u.defaultColorWriteParams})},r}(a.ShaderTechnique);s.shader=new n.ReloadableShaderModule(d.EdgeShader,(()=>new Promise(((r,t)=>e(["../../shaders/sources/edgeRenderer/EdgeShader.glsl"],r,t))))),r.EdgeShaderTechnique=s,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
