     idaten::Path* paths,
     aten::ray* rays,
     idaten::Reservoir* reservoirs,
+    idaten::ReSTIRIntermedidate* intermediates,
     int width, int height,
     int sample,
     unsigned int frame,

            m_paths.ptr(),
            m_rays.ptr(),
            m_reservoirs[0].ptr(),
            m_tileDomain.w, m_tileDomain.h,
            sample,
            m_frame,

    reservoirs[idx].m = 0;
    reservoirs[idx].light_idx = -1;
    reservoirs[idx].light_pdf = 0.0f;

    // Clear intermedisate data.
    intermediates[idx].clear();

    // Accumulate value, so do not reset.
    //path.contrib = aten::vec3(0);
