/*
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","../../../../chunks/tslib.es6","../core/shaderTechnique/ReloadableShaderModule","../core/shaderTechnique/ShaderTechnique","../core/shaderTechnique/ShaderTechniqueConfiguration","../lib/DefaultVertexAttributeLocations","../lib/Material","../lib/Program","../materials/DefaultTechniqueConfiguration","../../../../chunks/HeatmapDensity.glsl","../../../webgl/enums","../../../webgl/renderState"],(function(e,t,i,r,n,a,o,u,l,s,d,c,h,p){"use strict";var f;t.RadiusMode=void 0,(f=t.RadiusMode||(t.RadiusMode={}))[f.Screen=0]="Screen",f[f.World=1]="World";let m=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).searchRadius=128,t.resolutionForScale=0,t}return i._inheritsLoose(t,e),t}(l.MaterialParameters),g=function(e){function t(){return e.apply(this,arguments)||this}i._inheritsLoose(t,e);var r=t.prototype;return r.initializeProgram=function(e){const i=t.shader.get().build(this.configuration);return new s.Program(e.rctx,i,u.Default3D)},r.initializePipeline=function(){return p.makePipelineState({blending:p.simpleBlendingParams(h.BlendFactor.ONE,h.BlendFactor.ONE,h.BlendOperation.ADD),colorWrite:p.defaultColorWriteParams,depthTest:null,depthWrite:null})},r.destroy=function(){e.prototype.destroy.call(this)},t}(a.ShaderTechnique);g.shader=new n.ReloadableShaderModule(c.HeatmapDensity,(()=>new Promise(((t,i)=>e(["./HeatmapDensity.glsl"],t,i)))));let b=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isAttributeDriven=!1,t}return i._inheritsLoose(t,e),t}(d.DefaultTechniqueConfiguration);r.__decorate([o.parameter()],b.prototype,"isAttributeDriven",void 0),t.HeatmapDensityPassParameters=m,t.HeatmapDensityTechnique=g,t.HeatmapDensityTechniqueConfiguration=b,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
