three
Version:
JavaScript 3D library
36 lines (29 loc) • 484 B
JavaScript
/**
* Abstract class for representing pipelines.
*
* @private
* @abstract
*/
class Pipeline {
/**
* Constructs a new pipeline.
*
* @param {string} cacheKey - The pipeline's cache key.
*/
constructor( cacheKey ) {
/**
* The pipeline's cache key.
*
* @type {string}
*/
this.cacheKey = cacheKey;
/**
* How often the pipeline is currently in use.
*
* @type {number}
* @default 0
*/
this.usedTimes = 0;
}
}
export default Pipeline;