Click or drag to resize
CanvasSpriteSortMode Enumeration
[Win10_10586] Controls how the sprites in a sprite batch are sorted.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public enum CanvasSpriteSortMode
  Member nameValueDescription
None0[Win10_10586] No additional sorting is performed.
Bitmap1[Win10_10586] The sprites are sorted by bitmap, otherwise the order is preserved.

This API is only available when running on Windows 10 build 10586 (released November 2015) or greater.

The larger the batches that are sent to the graphics hardware the better the performance. Every time the bitmap changes a new batch must be started. If the sprites are sorted by bitmap then the batches can be larger. The downside to this if that if the code is relying on later sprites to draw over earlier sprites then this will break if the batches are sorted.

See Also