Vixen
02b45cc4
csharp
public struct ScreenProbeTraceJob

One probe to trace, laid out as ScreenProbeTrace.rvn's ScreenProbeTraceJob.

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

Remarks

Explicit offsets, asserted against ScreenProbeTrace.reflect.json by a test, for the reason every job mirror here gives: std430 puts the float3 at sixteen where sequential layout would put it at eight, and a struct that agrees with a comment agrees with nothing.

Fields and properties (4)

  • public const int Stride

    How many bytes from one job to the next.

  • public Int2 AtlasOrigin

    Where the probe's map starts in the atlas, in texels.

  • public int Valid

    One for a probe standing on a surface; zero for one whose patch is cleared instead.

  • public Vector3 Origin

    Where its rays start — the probe's surface, already stepped off along its normal.

Used by (2)

  • ScreenProbeTraceFillVixen.Rendering
  • ScreenProbeTraceJobTestsVixen.Rendering.Tests