BatchMode
Namespace: Murder.Core.Graphics
Assembly: Murder.dll
public sealed enum BatchMode : Enum, IComparable, ISpanFormattable, IFormattable, IConvertible
How SpriteBatch rendering should behave.
Implements: Enum, IComparable, ISpanFormattable, IFormattable, IConvertible
⭐ Properties
DepthSortAscending
public static const BatchMode DepthSortAscending;
Sort batches by Layer Depth using ascending order, but still trying to group as many batches as possible to reduce draw calls.
Returns
BatchMode
DepthSortDescending
public static const BatchMode DepthSortDescending;
Sort batches by Layer Depth using descending order, but still trying to group as many batches as possible to reduce draw calls.
Returns
BatchMode
DrawOrder
public static const BatchMode DrawOrder;
Standard way. Will respect SpriteBatch.Draw*() call order, ignoring Layer Depth, but still trying to group as many batches as possible to reduce draw calls.
Returns
BatchMode
Immediate
public static const BatchMode Immediate;
Every SpriteBatch.Draw*() will result in an isolate draw call. No batching will be made, so be careful.
Returns
BatchMode
⚡