Vixen
02b45cc4
csharp
public readonly record struct ShapeBatch

One run of a scene's entities that share a shape, and are therefore one draw.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A PrimitiveKind rather than a device handle, because this side of the seam has no device: the collector says which shape each run wants and whoever owns the buffers turns that into a MeshShapeGeometry. When a block-out mesh is a mesh of its own rather than a parameter, this is where its identity goes and nothing else here changes.

Fields and properties (5)

  • public SceneShape Shape
  • public int First

    Where the run starts in Instances.

  • public int Count

    How many entities it holds.

  • public bool Edges

    Whether it draws their wireframe rather than their surfaces.

  • public PrimitiveKind Kind

    Which primitive, for a batch of them.

Methods (1)

  • public ShapeBatch(SceneShape Shape, int First, int Count, bool Edges)

    One run of a scene's entities that share a shape, and are therefore one draw.

Used by (6)

  • BlockoutSurfaceTestsVixen.Editor.Blockout.Tests
  • PrimitiveShapeTestsVixen.Editor.SceneView.Tests
  • SceneMeshAssetTestsVixen.Editor.SceneView.Tests
  • SceneMeshesVixen.Editor.SceneView
  • ScenePresenterVixen.Editor.App
  • ViewportStateTestsVixen.Editor.SceneView.Tests