SpriteBatcher.IndexComparer Struct
Compares batch items by index into the items list, avoiding full-struct copies during sort swaps. Only 4-byte indices are swapped instead of the 80+ byte SpriteBatchItem structs.
private readonly struct SpriteBatcher.IndexComparer : System.Collections.Generic.IComparer<int>
Implements System.Collections.Generic.IComparer<System.Int32>
| Constructors | |
|---|---|
| IndexComparer(List<SpriteBatchItem>) | Compares batch items by index into the items list, avoiding full-struct copies during sort swaps. Only 4-byte indices are swapped instead of the 80+ byte SpriteBatchItem structs. |