Vixen
02b45cc4
csharp
public readonly record struct ClusterMesh

Where one registered mesh's records ended up in the scene-wide buffers.

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

Remarks

What an instance needs to point at a DAG, and nothing about where the instance is — a mesh is registered once and drawn many times, which is the whole reason the records and the instances are two buffers.

Fields and properties (9)

  • public int Source

    The id its pages carry in a PageKey.

  • public int FirstCluster

    Where its clusters start in the merged cluster buffer.

  • public int ClusterCount

    How many it has.

  • public int FirstRoot

    Where its roots start in the merged root buffer.

  • public int RootCount

    How many it has.

  • public int FirstPage

    The global page index its page zero became.

  • public int PageCount

    How many pages it has.

  • public Vector3 Center

    The centre of its bind-pose bound, in object space.

  • public float Radius

    The radius of that bound — what a pose is measured against to say how far the mesh can move.

Methods (1)

  • public ClusterMesh(int Source, int FirstCluster, int ClusterCount, int FirstRoot, int RootCount, int FirstPage, int PageCount, Vector3 Center = default(Vector3), float Radius = 0)

    Where one registered mesh's records ended up in the scene-wide buffers.

Used by (6)

  • AssetVirtualGeometrySourceVixen.Engine.Renderer
  • ClusterRasterTestsVixen.Rendering.Tests
  • GpuClusterVisibilityVixen.Rendering
  • VirtualGeometryFrameTestsVixen.Rendering.Tests
  • VirtualGeometryRenderFeatureVixen.Rendering
  • VisibilityResolveTestsVixen.Rendering.Tests