@openhps/core
Version:
Open Hybrid Positioning System - Core component
29 lines (27 loc) • 577 B
JavaScript
import Buffer from './Buffer.js';
/**
* Represents a uniform buffer binding type.
*
* @private
* @augments Buffer
*/
class UniformBuffer extends Buffer {
/**
* Constructs a new uniform buffer.
*
* @param {string} name - The buffer's name.
* @param {TypedArray} [buffer=null] - The buffer.
*/
constructor(name, buffer = null) {
super(name, buffer);
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isUniformBuffer = true;
}
}
export default UniformBuffer;