Vixen
02b45cc4
csharp
public readonly record struct MeshInstanceBatch

One 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 Geometry

    Which shape they are instances of.

  • public int First

    Where the run starts in the frame's instances.

  • public int Count

    How many instances it holds.

  • public bool Edges

    Whether it draws the shape's wireframe rather than its surface.

  • public int IndexCount

    How many indices this draw reads.

  • public int FirstIndex

    Which index it starts at.

  • public bool IsDrawable

    Whether 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