shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gpu$shader$utils$generateGpuLayoutGroups = function(global, require, module, exports) {
  var _const = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$shader$const");
  "use strict";
  exports.generateGpuLayoutGroups = function({groups}) {
    const layout = [];
    for (let i = 0; i < groups.length; i++) {
      const group = groups[i];
      layout[group.group] || (layout[group.group] = []);
      group.isUniform ? layout[group.group].push({binding:group.binding, visibility:_const.ShaderStage.VERTEX | _const.ShaderStage.FRAGMENT, buffer:{type:"uniform"}}) : "sampler" === group.type ? layout[group.group].push({binding:group.binding, visibility:_const.ShaderStage.FRAGMENT, sampler:{type:"filtering"}}) : "texture_2d" === group.type || group.type.startsWith("texture_2d\x3c") ? layout[group.group].push({binding:group.binding, visibility:_const.ShaderStage.FRAGMENT, texture:{sampleType:"float", 
      viewDimension:"2d", multisampled:!1}}) : "texture_2d_array" === group.type || group.type.startsWith("texture_2d_array\x3c") ? layout[group.group].push({binding:group.binding, visibility:_const.ShaderStage.FRAGMENT, texture:{sampleType:"float", viewDimension:"2d-array", multisampled:!1}}) : ("texture_cube" === group.type || group.type.startsWith("texture_cube\x3c")) && layout[group.group].push({binding:group.binding, visibility:_const.ShaderStage.FRAGMENT, texture:{sampleType:"float", viewDimension:"cube", 
      multisampled:!1}});
    }
    for (groups = 0; groups < layout.length; groups++) {
      layout[groups] || (layout[groups] = []);
    }
    return layout;
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gpu$shader$utils$generateGpuLayoutGroups.js.map
