Vixen
02b45cc4
csharp
public record class MeshletGroup

The clusters that were simplified together, and what came out.

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

Remarks

The edge of the DAG, and the reason the DAG is a DAG rather than a tree: a group's simplification produces several clusters, and every one of them replaces all of the group's children rather than some of them. A cut therefore refines a group at a time — take all the parents out, put all the children in — which is what keeps it valid.

Error is one number for the whole group for the same reason. If two parents out of one group carried different errors, a threshold between them would draw one parent beside its own siblings' children, and the boundary those two share is exactly the one that was locked to make them meet.

Fields and properties (4)

  • public int[] Children

    The clusters simplified together.

  • public int[] Parents

    The clusters the simplification produced. Empty if it failed to reduce anything.

  • public float Error

    The deviation from the original mesh that drawing the parents rather than the children costs.

  • public int Level

    Which level the children are at.

Used by (10)

  • GpuClusterCullingVixen.Rendering
  • MeshletBuilderTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletCutVixen.Rendering.VirtualGeometry
  • MeshletCutTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletMeshVixen.Rendering.VirtualGeometry
  • MeshletValidatorVixen.Rendering.VirtualGeometry
  • MeshletValidatorTestsVixen.Rendering.VirtualGeometry.Tests
  • SessionVixen.Rendering.VirtualGeometry
  • Vixen_Rendering_VirtualGeometry_MeshletGroupSerializerVixen.Rendering.VirtualGeometry
  • Vixen_Rendering_VirtualGeometry_MeshletMeshSerializerVixen.Rendering.VirtualGeometry