Batch2DConfig Type
Configuration for Batch2DRenderer.
These settings configure the *rendering pass* (Clear + SpriteBatch.Begin parameters), not individual sprites (those are controlled by RenderCmd2D / Draw2DBuilder).
Record fields
| Record Field |
Description
|
|
Blend state for sprite drawing.
|
|
Optional color to clear the screen with before drawing.
|
|
Depth stencil state.
|
Optional shader effect for all sprites.
|
|
|
Rasterizer state.
|
|
Sampler state for texture filtering.
|
Full Usage:
SortCommands
Field type: bool
|
Whether to sort the command buffer by `RenderLayer` before issuing draws. Keep this enabled if you rely on `RenderLayer` for deterministic ordering.
|
|
SpriteBatch sort mode (Deferred, Immediate, etc).
|
|
Global transform matrix for the batch. Note: If using `SetCamera` commands, this initial matrix might be overridden during the pass.
|
Mibo