protected override void ValidateRemoval(int index) { Debug.Assert(!SpanHelper.IsZeroed(ref shapes[index]), "Either a shape was default constructed (which is almost certainly invalid), or this is attempting to remove a shape that was already removed."); //Don't have to actually clear out the shape set since everything is blittable. For debug purposes, we do, just to catch invalid usages. shapes[index] = default; }