Vixen
02b45cc4
csharp
public readonly record struct GeometrySlice

Where 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 BaseVertex

    Which 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 VertexCount

    How many vertices it occupies.

  • public int FirstIndex

    Which index it starts at.

  • public int IndexCount

    How many indices it occupies.

  • public bool IsValid

    Whether 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