{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/views/2d/engine/webgl/effects/post-processing/Opacity.js"],"names":["t","this","_size","_layerFBOTexture","dispose","e","r","width","s","height","i","_createOrResizeResources","context","l","painter","o","amount","a","h","gl","n","bindFramebuffer","copyToTexture","setBlendingEnabled","setStencilTestEnabled","setDepthTestEnabled","setClearColor","clear","COLOR_BUFFER_BIT","blitTexture","resize","target","pixelFormat","internalFormat","dataType","wrapMode","samplingMode","flipped"],"mappings":"kHAAA,+IAIqZ,MAAMA,EAAE,cAAcC,KAAKC,MAAM,CAAC,EAAE,GAAG,UAAUD,KAAKE,mBAAmBF,KAAKE,iBAAiBC,UAAUH,KAAKE,iBAAiB,MAAM,KAAKE,EAAEL,EAAEM,GAAG,MAAMC,MAAMC,EAAEC,OAAOC,GAAGV,EAAEC,KAAKU,yBAAyBN,EAAEG,EAAEE,GAAG,MAAME,QAAQC,EAAEC,QAAQC,GAAGV,GAAGW,OAAOC,GAAGX,EAAEY,EAAEL,EAAEM,GAAGC,EAAEnB,KAAKE,iBAAiBU,EAAEQ,gBAAgBrB,GAAGA,EAAEsB,cAAc,EAAE,EAAEd,EAAEE,EAAE,EAAE,EAAEU,GAAGP,EAAEU,oBAAmB,GAAIV,EAAEW,uBAAsB,GAAIX,EAAEY,qBAAoB,GAAIZ,EAAEa,cAAc,EAAE,EAAE,EAAE,GAAGb,EAAEc,MAAMT,EAAEU,kBAAkBb,EAAEc,YAAYhB,EAAEO,EAAE,KAAKH,GAAG,yBAAyBjB,EAAEM,EAAEE,GAAG,MAAMI,QAAQF,GAAGV,EAAEC,KAAKE,kBAAkBF,KAAKC,MAAM,KAAKI,GAAGL,KAAKC,MAAM,KAAKM,IAAIP,KAAKC,MAAM,GAAGI,EAAEL,KAAKC,MAAM,GAAGM,EAAEP,KAAKE,iBAAiBF,KAAKE,iBAAiB2B,OAAOxB,EAAEE,GAAGP,KAAKE,iBAAiB,IAAI,OAAEO,EAAE,CAACqB,OAAO,KAAKC,YAAY,KAAKC,eAAe,KAAKC,SAAS,KAAKC,SAAS,MAAMC,aAAa,KAAKC,SAAQ,EAAG9B,MAAMD,EAAEG,OAAOD","file":"js/chunk-2d0ccfe5.21e6c488.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.21/esri/copyright.txt for details.\n*/\nimport\"../../../../../webgl/BufferObject.js\";import\"../../../../../webgl/FramebufferObject.js\";import\"../../../../../../core/has.js\";import\"../../../../../webgl/checkWebGLError.js\";import\"../../../../../webgl/enums.js\";import\"../../../../../../chunks/builtins.js\";import\"../../../../../webgl/renderState.js\";import e from\"../../../../../webgl/Texture.js\";import\"../../../../../webgl/VertexArrayObject.js\";class t{constructor(){this._size=[0,0]}dispose(){this._layerFBOTexture&&(this._layerFBOTexture.dispose(),this._layerFBOTexture=null)}draw(e,t,r){const{width:s,height:i}=t;this._createOrResizeResources(e,s,i);const{context:l,painter:o}=e,{amount:a}=r,h=l.gl,n=this._layerFBOTexture;l.bindFramebuffer(t),t.copyToTexture(0,0,s,i,0,0,n),l.setBlendingEnabled(!0),l.setStencilTestEnabled(!1),l.setDepthTestEnabled(!1),l.setClearColor(0,0,0,0),l.clear(h.COLOR_BUFFER_BIT),o.blitTexture(l,n,9728,a)}_createOrResizeResources(t,r,s){const{context:i}=t;this._layerFBOTexture&&this._size[0]===r&&this._size[1]===s||(this._size[0]=r,this._size[1]=s,this._layerFBOTexture?this._layerFBOTexture.resize(r,s):this._layerFBOTexture=new e(i,{target:3553,pixelFormat:6408,internalFormat:6408,dataType:5121,wrapMode:33071,samplingMode:9728,flipped:!1,width:r,height:s}))}}export{t as Opacity};\n"],"sourceRoot":""}