function Buffer(data, _static, index) {
        if (_static === void 0) { _static = true; }
        if (index === void 0) { index = false; }
        this.data = (data || new Float32Array(1));
        this._glBuffers = {};
        this._updateID = 0;
        this.index = index;
        this.static = _static;
        this.id = UID$4++;
        this.disposeRunner = new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('disposeBuffer');
    }
@param {PIXI.IArrayBuffer} data - the data to store in the buffer.
@param _static - `true` for static buffer
@param index - `true` for index buffer