Vixen
02b45cc4
csharp
public static class MeshletPageBuilder

Packs a cluster DAG's geometry into fixed-size pages, quantized against one grid.

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

Remarks

Phase 2's offline half. Two things happen here and they are independent: the geometry is quantized, which is about bytes per vertex, and it is paged, which is about what can be loaded without loading everything.

The quantization is the part that can go wrong silently, and QuantizationStep says how. The paging is the part that decides whether streaming thrashes, and the policy is one line: clusters are packed coarsest-first, so page zero holds the roots and a page holds one level of one neighbourhood. A camera that moves closer wants the next page rather than a scattering of clusters out of every page there is.

Fields and properties (3)

  • public const int PositionSize

    Six bytes of quantized position, three unsigned shorts.

  • public const int InfluenceSize

    Eight bytes of influences: four bone indices, then four weights.

  • public const int MaxBones

    How many bones a mesh whose pages carry influences may have.

Methods (1)

Used by (17)

  • VirtualGeometryGameVirtualGeometry
  • ClusterRasterTestsVixen.Rendering.Tests
  • ClusterResolveTestsVixen.Rendering.Tests
  • ClusterTraversalAcceptsTestsVixen.Rendering.Tests
  • ClusterTraversalGroupTestsVixen.Rendering.Tests
  • MeshletPageBuilderTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletPageSettingsVixen.Rendering.VirtualGeometry
  • MeshletStreamingTestsVixen.Rendering.Tests
  • SkinnedClusterTestsVixen.Rendering.Tests
  • VirtualGeometryContentTestsVixen.Rendering.Tests
  • VirtualGeometryDeviceTestsVixen.Graphics.Golden.Tests
  • VirtualGeometryFrameTestsVixen.Rendering.Tests
  • VirtualGeometryGoldenTestsVixen.Graphics.Golden.Tests
  • VisibilityResolveTestsVixen.Rendering.Tests
  • ModelCompilerVixen.Editor.Assets
  • ModelImporterTestsVixen.Editor.Assets.Tests
  • SkinnedPageTestsVixen.Editor.Assets.Tests