csharp
public readonly record struct GeometrySliceWhere one mesh's geometry sits inside a shared buffer.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Counts and not bytes. A vertex offset is a vertex count on every API — the stride comes from the pipeline's vertex layout, not from the draw — and an index offset is an index count. Storing bytes would mean dividing by a stride at every use and getting a fraction wherever the two disagreed.
Fields and properties (5)
public int BaseVertexWhich vertex the mesh starts at. Added to every index before the vertex is fetched, which is what VertexOffset and every API's vertexOffset mean.
public int VertexCountHow many vertices it occupies.
public int FirstIndexWhich index it starts at.
public int IndexCountHow many indices it occupies.
public bool IsValidWhether this names a real allocation.
Methods (1)
public GeometrySlice(int BaseVertex, int VertexCount, int FirstIndex, int IndexCount)Where one mesh's geometry sits inside a shared buffer.
Used by (12)
- BindlessFrameTestsVixen.Rendering.Tests
- DrawCompactionTestsVixen.Rendering.Tests
- EntryVixen.Rendering
- GeometryBufferVixen.Rendering
- GeometryBufferTestsVixen.Rendering.Tests
- GeometryResidencyVixen.Rendering
- MeshExtractionSystemVixen.Rendering
- MeshExtractionTestsVixen.Rendering.Tests
- MeshInstanceBatchVixen.Rendering
- MeshInstanceRendererVixen.Rendering
- MeshInstanceRendererTestsVixen.Rendering.Tests
- MeshShapeGeometryVixen.Rendering