/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{DisposableFramebufferObject as r}from"../../../../../webgl/FramebufferObject.js";import{RenderbufferDescriptor as e}from"../../../../../webgl/RenderbufferDescriptor.js";import{TextureDescriptor as s}from"../../../../../webgl/TextureDescriptor.js";function t(t,o,i){const h=new s(o,i);return h.wrapMode=33071,new r(t,h,new e(36168,o,i))}class o{constructor(){this._width=void 0,this._height=void 0,this._resources=null}dispose(){this._resources&&(this._resources.sharedBlur1Fbo.dispose(),this._resources.sharedBlur2Fbo.dispose(),this._resources=null)}_initialize(r,e,s){this._width=e,this._height=s;const o=t(r,e,s),i=t(r,e,s);this._resources={sharedBlur1Fbo:o,sharedBlur2Fbo:i}}setup(r,e,s){!this._resources||this._width===e&&this._height===s||this.dispose(),this._resources||this._initialize(r,e,s)}get sharedBlur1Tex(){return this._resources.sharedBlur1Fbo.colorTexture}get sharedBlur1Fbo(){return this._resources.sharedBlur1Fbo}get sharedBlur2Tex(){return this._resources.sharedBlur2Fbo.colorTexture}get sharedBlur2Fbo(){return this._resources.sharedBlur2Fbo}}export{o as default};
