UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 648 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{ResourceType as e}from"./enums.js";class t{constructor(t){this._context=t,this.type="transform-feedback",this._glName=this._gl.createTransformFeedback(),this._context.instanceCounter.increment(e.TransformFeedback,this)}dispose(){this._context.gl&&this._glName&&(this._gl.deleteTransformFeedback(this._glName),this._glName=null,this._context.instanceCounter.decrement(e.TransformFeedback,this))}get _gl(){return this._context.gl}get glName(){return this._glName}}export{t as TransformFeedback};