Vixen
02b45cc4
csharp
public struct CullCluster

One cluster as CullCluster in the shader declares it.

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

Remarks

The runtime half of Meshlet, and nothing that is only needed once a cluster has been accepted. Where its geometry is lives in the page placement, which the traversal reads only to ask whether it has arrived — a cluster has to be tested before anybody can know whether its bytes are wanted, which is why the records are resident and the geometry is paged.

Fields and properties (14)

  • public Vector3 Center

    The bind-pose bound's centre, in the mesh's own space.

  • public float Radius

    Its radius.

  • public Vector3 ConeAxis

    The axis of the cone every triangle's normal lies inside.

  • public float ConeCosine

    The cosine of the cone's half-angle. Negative means the cone can never reject.

  • public Vector3 ErrorCenter

    The bound of the group whose simplification produced this cluster, which is where Error is projected from.

  • public float ErrorRadius

    The group bound's radius.

  • public float Error

    How far this cluster's surface may deviate from the original mesh, in object space.

  • public float ParentError

    The error of the group this cluster is simplified into, or a very large number.

  • public uint FirstChild

    Where this cluster's children start in the child array.

  • public uint ChildCount

    How many it has. Zero is a leaf: level zero, the original mesh.

  • public uint Page

    Which page holds its geometry.

  • public uint Flags

    ClusterRoot when nothing simplifies it further.

  • public uint GroupLead

    The lowest-indexed parent of the group that produced this cluster — the one that pushes.

  • public uint Padding

    Four bytes of tail padding the shader declares and never reads.

Used by (7)

  • ClusterRoutingTestsVixen.Rendering.Tests
  • ClusterSceneVixen.Rendering
  • ClusterTraversalGroupTestsVixen.Rendering.Tests
  • GpuClusterCullingVixen.Rendering
  • GpuClusterCullingTestsVixen.Rendering.Tests
  • GpuClusterVisibilityVixen.Rendering
  • VirtualGeometryFrameTestsVixen.Rendering.Tests