/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{MaterialChangeSet as e}from"./ChangeSet.js";function r(r){const a=new Map,n=t=>{let n=a.get(t);return n||(n=new e(r),a.set(t,n)),n};return r.removes.forEach(e=>{t(e)&&n(e.material).removes.push(e)}),r.adds.forEach(e=>{t(e)&&n(e.material).adds.push(e)}),r.updates.forEach(e=>{t(e.renderGeometry)&&n(e.renderGeometry.material).updates.push(e)}),a}function t(e){return e.geometry.indexCount>=1}export{r as splitRenderGeometryChangeSetByMaterial};
