function CubeResource(source, options) {
        var _this = this;
        var _a = options || {}, width = _a.width, height = _a.height, autoLoad = _a.autoLoad, linkBaseTexture = _a.linkBaseTexture;
        if (source && source.length !== CubeResource.SIDES) {
            throw new Error("Invalid length. Got " + source.length + ", expected 6");
        }
        _this = _super.call(this, 6, { width: width, height: height }) || this;
        for (var i = 0; i < CubeResource.SIDES; i++) {
            _this.items[i].target = _pixi_constants__WEBPACK_IMPORTED_MODULE_1__.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X + i;
        }
        _this.linkBaseTexture = linkBaseTexture !== false;
        if (source) {
            _this.initFromArray(source, options);
        }
        if (autoLoad !== false) {
            _this.load();
        }
        return _this;
    }
@param {Array<string|PIXI.Resource>} [source] - Collection of URLs or resources
       to use as the sides of the cube.
@param options - ImageResource options
@param {number} [options.width] - Width of resource
@param {number} [options.height] - Height of resource
@param {number} [options.autoLoad=true] - Whether to auto-load resources
@param {number} [options.linkBaseTexture=true] - In case BaseTextures are supplied,
  whether to copy them or use