/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import"../../../core/has.js";import{subclass as r}from"../../../core/accessorSupport/decorators.js";let s=class extends t{constructor(e,t){super(),this.key=e,this._free=t,this.incarnation=0,this._refCount=1}retain(e=1){this._refCount+=e}release(){if(0===this._refCount){const e=`Releasing already released FBO attachment "${this.name}" in ${(new Error).stack}`;return console.log(e),!0}return--this._refCount,0===this._refCount&&(this._free(),!0)}get test(){}};s=e([r("esri.views.3d.webgl.ManagedFBOResource")],s);const o=s;export{o as default};
