Vixen
02b45cc4
csharp
public struct IrradianceRepairJob

One brick to repair, laid out as IrradianceRepair.rvn's IrradianceRepairJob.

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

Remarks

The same first three members as IrradianceFillJob and one more, which is why they are two types rather than one: the size is what tells a same-size neighbour from a coarser one, and a fill has no use for it. It lands in the padding std430 left after the spacing, so both are forty-eight bytes — a coincidence worth *not* relying on, which is why a test asserts each against its own reflection.

Fields and properties (5)

  • public const int Stride

    How many bytes from one job to the next.

  • public Int3 Origin

    Where the brick's footprint starts in the pool, in texels.

  • public Vector3 Position

    Where its probe (0, 0, 0) stands, in world space.

  • public Vector3 Spacing

    How far apart its probes are.

  • public float Size

    How many finest cells across it is. Zero is padding, which the shader skips.

Used by (2)

  • IrradianceFieldRepairVixen.Rendering
  • IrradianceFillJobTestsVixen.Rendering.Tests