 
 __global__ void medianFilter(
 	cudaSurfaceObject_t dst,
-	const float4* __restrict__ src,
-	idaten::SVGFPathTracing::AOV* curAovs,
-	const idaten::SVGFPathTracing::AOV* __restrict__ prevAovs,
-	const aten::mat4* __restrict__ mtxs,
-	const idaten::SVGFPathTracing::Path* __restrict__ paths,
+	float4* curAovColorVariance,
+	float4* curAovMomentMeshid,
+	const float4* __restrict__ prevAovMomentMeshid,
 	int width, int height)
 {
 	int ix = blockIdx.x * blockDim.x + threadIdx.x;

#ifdef ENABLE_MEDIAN_FILTER
		medianFilter << <grid, block >> > (
			outputSurf,
			m_tmpBuf.ptr(),
			curaov.ptr(),
			prevaov.ptr(),
			m_mtxs.ptr(),
			m_paths.ptr(),
			width, height);

		checkCudaKernel(medianFilter);

			m_aovMomentMeshid[prevaov].ptr(),
			motionDepthBuffer,
			outputSurf,
			width, height);

		checkCudaKernel(temporalReprojection);
