Skip to content

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.

C#
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.