//Recalculates max size whenever called - can potentially be very slow! public void CalculateDynamicMaxSize() { MaxSize = 0; DataSpecifications.ForEach(d => MaxSize += d.Count * DrawableIndices * d.SizeInBytes); }
public override void CalculateMaxSize() { Debug.Assert(MaxDrawableIndices != 0); MaxSize = 0; DataSpecifications.ForEach(d => MaxSize += d.Count * MaxDrawableIndices * d.SizeInBytes); }