public readonly record struct MeshInstanceBatchOne run of instances sharing a shape and a topology, which is one draw.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The instances of one batch have to be contiguous. A draw names a first instance and a count, so a collector that appended entities in scene order would produce one batch per entity and lose the whole benefit — grouping by shape before uploading is the caller's job, and it is the only thing the caller has to get right.
Fields and properties (7)
public MeshShapeGeometry GeometryWhich shape they are instances of.
public int FirstWhere the run starts in the frame's instances.
public int CountHow many instances it holds.
public bool EdgesWhether it draws the shape's wireframe rather than its surface.
public int IndexCountHow many indices this draw reads.
public int FirstIndexWhich index it starts at.
public bool IsDrawableWhether there is anything to draw.
Methods (1)
public MeshInstanceBatch(MeshShapeGeometry Geometry, int First, int Count, bool Edges)One run of instances sharing a shape and a topology, which is one draw.
Used by (3)
- MeshInstanceRendererVixen.Rendering
- MeshInstanceRendererTestsVixen.Rendering.Tests
- ScenePresenterVixen.Editor.App