Vixen
02b45cc4
csharp
public struct ClusterLights

One cluster's light list, exactly as ClusterLights in the shader declares it.

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

Remarks

A count beside the indices rather than a sentinel, because a shading pass wants to leave the loop rather than test every entry — and 0 is a perfectly good light index, so no value is free to mean "no more". Declared here only to size the buffer: the host never writes one, because the whole point of the pass is that the GPU does.

Fields and properties (2)

  • public uint Count

    How many of Indices are live.

  • public ClusterLights.IndexArray Indices

    The lights that reach this cluster.

Used by (4)

  • BufferTransferDeviceTestsVixen.Graphics.Golden.Tests
  • ClusterCullingDeviceTestsVixen.Graphics.Golden.Tests
  • ClusterGridVixen.Rendering
  • ClusteredLightingTestsVixen.Rendering.Tests