@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 794 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/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};