shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$texture$uploaders$glUploadCubeTextureResource = function(global, require, module, exports) {
  var _const = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$texture$const");
  "use strict";
  const FACE_ORDER = "right left top bottom front back".split(" ");
  exports.createGlUploadCubeTextureResource = function(uploaders) {
    return {id:"cube", upload(source, glTexture, gl, webGLVersion) {
      const faces = source.faces;
      for (let faceIndex = 0; faceIndex < FACE_ORDER.length; faceIndex++) {
        const face = faces[FACE_ORDER[faceIndex]];
        (uploaders[face.uploadMethodId] || uploaders.image).upload(face, glTexture, gl, webGLVersion, _const.GL_TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, 0 === (glTexture._layerInitMask & 1 << faceIndex));
        glTexture._layerInitMask |= 1 << faceIndex;
      }
      glTexture.width = source.pixelWidth;
      glTexture.height = source.pixelHeight;
    }};
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$texture$uploaders$glUploadCubeTextureResource.js.map
