csharp
public readonly record struct ShapeBatchOne 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 Shapepublic int FirstWhere the run starts in Instances.
public int CountHow many entities it holds.
public bool EdgesWhether it draws their wireframe rather than their surfaces.
public PrimitiveKind KindWhich 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