SpriteBatcher.IndexComparer Struct
Definition
Namespace: Brine2D.Rendering.SpriteBatcher
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.
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. |