Vixen
02b45cc4
csharp
public struct RasterCluster

Where one cluster's bytes are inside its page, as RasterCluster declares it.

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

Remarks

CullCluster's other half, and split from it for the reason the whole phase is split that way: a traversal reads bounds and errors for every cluster it tests, and a raster reads this for only the ones it draws. One buffer per question keeps the traversal's reads dense, which is what a walk over a hundred thousand clusters is bound by.

Fields and properties (6)

  • public Int3 Origin

    The cluster's origin on the mesh's quantization grid, in whole grid steps.

  • public uint Page

    Which page holds its bytes, in the pool's global page numbering.

  • public uint VertexOffset

    Where its vertices start, in bytes from the page's own start.

  • public uint TriangleOffset

    Where its triangle corners start, in bytes from the page's own start.

  • public uint TriangleCount

    How many triangles it has.

  • public uint VertexStride

    How many bytes one of its vertices occupies.

Used by (2)

  • ClusterRasterTestsVixen.Rendering.Tests
  • GpuClusterVisibilityVixen.Rendering