/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../chunks/_rollupPluginBabelHelpers","../../../geometry/support/aaBoundingRect","./BitmapTile","./brushes","./webgl/enums","./webgl/TileContainer"],(function(e,t,i,r,n,s,a){"use strict";let o=function(e){function a(){return e.apply(this,arguments)||this}t._inheritsLoose(a,e);var o=a.prototype;return o.createTile=function(e){const t=this._tileInfoView.getTileBounds(i.create(),e),[n,s]=this._tileInfoView.tileInfo.size;return new r.BitmapTile(e,t[0],t[3],n,s)},o.prepareRenderPasses=function(t){const i=t.registerRenderPass({name:"bitmap (tile)",brushes:[n.brushes.bitmap],target:()=>this.children.map((e=>e.bitmap)),drawPhase:s.WGLDrawPhase.MAP});return[...e.prototype.prepareRenderPasses.call(this,t),i]},o.doRender=function(t){this.visible&&t.drawPhase===s.WGLDrawPhase.MAP&&e.prototype.doRender.call(this,t)},t._createClass(a,[{key:"requiresDedicatedFBO",get:function(){return this.children.some((e=>"additive"===e.bitmap.blendFunction))}}]),a}(a);e.BitmapTileContainer=o,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
