class MAGES::MeshDeformations::Editor::AlbedoBaker::Scratch

Per-thread scratch for the parallel ray pass: the triangle visited-stamp buffer (reused across rays so a triangle is tested at most once per ray during grid traversal) plus a monotonically increasing ray id, and this thread’s private hit counters (summed in the loop finalizer).

class Scratch
{
public:
    // fields

    readonly int[] Stamp;
    int RayId;
    int RayHits;
    int Fallbacks;

    // methods

    Scratch(int triangleCount);
};