/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{createResolver as e}from"../../../../../../core/promiseUtils.js";import{Container as s}from"../../../Container.js";import{TestDisplayObject as r}from"./TestDisplayObject.js";class t extends s{constructor(e,s){super(),this.store=e,this.meshData=s}whenRender(){return null==this._resolver&&(this._resolver=e(),this.requestRender()),this._resolver.promise}doRender(e){const s=this._stage?.bufferPool,t=r.fromMeshData(this.meshData,s,this.store);for(const[r,o]of this.store.entries())t.setActiveMesh(r),o.techniqueRef.render(e,t);t.destroy(),this._resolver&&(this._resolver.resolve(),this._resolver=null)}}export{t as TechniqueDebugContainer};
