Vixen
02b45cc4
csharp
public readonly record struct PageKey

Which page of which thing.

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

Remarks

Two integers rather than an object, because there are hundreds of thousands of them and they are compared, hashed and sorted every frame. A handle would be an allocation and a dereference per comparison, for an identity that is already two numbers.

Fields and properties (2)

  • public int Source

    What the page belongs to: a mesh, a texture, a shadow atlas. Assigned by whoever registered it — the residency service never interprets it.

  • public int Index

    Which page of that source.

Methods (1)

  • public PageKey(int Source, int Index)

    Which page of which thing.

Used by (17)

  • DelayedSourceVixen.Rendering.Tests
  • FakeStoreVixen.Rendering.Tests
  • FoliageCellPagesVixen.Rendering.Terrain
  • GpuClusterVisibilityVixen.Rendering
  • IMeshletPageSourceVixen.Rendering
  • IPageStoreVixen.Rendering
  • InstantStoreVixen.Rendering.Tests
  • MemoryMeshletPageSourceVixen.Rendering
  • MeshletPagePoolVixen.Rendering
  • PageResidencyVixen.Rendering
  • PageResidencyTestsVixen.Rendering.Tests
  • StreamMeshletPageSourceVixen.Rendering
  • StreamingGridVixen.Rendering
  • StreamingGridTestsVixen.Rendering.Tests
  • TerrainTilePagesVixen.Rendering.Terrain
  • VirtualShadowPageTestsVixen.Rendering.Tests
  • VirtualShadowPagesVixen.Rendering