 	int hitnum,
 	const aten::Intersection* __restrict__ isects,
 	aten::ray* rays,
+	int frame,
 	int bounce, int rrBounce,
 	const aten::ShapeParameter* __restrict__ shapes, int geomnum,
 	aten::MaterialParameter* mtrls,

	const idaten::SVGFPathTracing::Path* __restrict__ paths,
	int width, int height)
{
	const auto ix = blockIdx.x * blockDim.x + threadIdx.x;
	const auto iy = blockIdx.y * blockDim.y + threadIdx.y;

	if (ix >= width && iy >= height) {
		return;
	}

	const auto idx = getIdx(ix, iy, width);

	const auto& path = paths[idx];

#include "cuda/cudamemory.h"

#include "aten4idaten.h"

//#define ENABLE_DEBUG_1PIXEL

#ifdef ENABLE_DEBUG_1PIXEL
#define DEBUG_IX	(140)
#define DEBUG_IY	(511 - 81)
#endif

__global__ void genPath(
	idaten::SVGFPathTracing::Path* paths,
