 }@@
 }@@
 
-@@{
-void EXPR intersectionFilter(const void* ID valid_in, void* ID geomUserPtr_in, RTCRay& ID ray_in)
-{
-=>
-void intersectionFilter(const uniform RTCFilterFunctionNArguments* const uniform args)
-{
-  const void* uniform valid_in = args->valid;
-  void* uniform geomUserPtr_in = args->geomUserPtr;
-  COMMENT RTCIntersectContext* uniform context = args->context;
-  COMMENT varying RTCRay* uniform ray_in = (varying RTCRay* uniform) args->ray;
-  RTCHit* uniform potentialHit = (RTCHit* uniform) args->potentialHit;
-  uniform unsigned int N = args->N;
-  assert(N == sizeof(varying float)/4);
-  if (none(valid)) return; // function may get called with zero mask
-@@{
-ray_in.
-=>
-potentialHit->
-}@@
-}@@
+//@@{
+//void EXPR intersectionFilter(const void* ID valid_in, void* ID geomUserPtr_in, RTCRay& ID ray_in)
+//{
+//=>
+//void intersectionFilter(const uniform RTCFilterFunctionNArguments* const uniform args)
+//{
+//  const void* uniform valid_in = args->valid;
+//  const varying int* uniform vvalid = (const varying int* uniform ) valid;
+//  void* uniform geomUserPtr_in = args->geomUserPtr;
+//  COMMENT RTCIntersectContext* uniform context = args->context;
+//  COMMENT varying RTCRay* uniform ray_in = (varying RTCRay* uniform ) args->ray;
+//  RTCHit* uniform potentialHit = (RTCHit* uniform ) args->potentialHit;
+//  uniform unsigned int N = args->N;
+//  assert(N == __programCount);
+//@@{
+//ray_in.
+//=>
+//potentialHit->
+//}@@
+//}@@
 
 @@{
 void EXPR intersectionFilterN(int* ID valid_in, void* ID geomUserPtr_in, const RTCIntersectContext* ID context_in, RTCRayN* ID ray_in, const RTCHitN* ID potentialHit_in, const size_t ID N_in)

void EXPR RTCIntersectFuncN(const int* ID valid_in, void* ID geomUserPtr_in, const RTCIntersectContext* ID context_in, RTCRayN* ID ray_in, size_t ID N_in, size_t ID item_in)
{
=>
void RTCIntersectFuncN(const uniform RTCIntersectFunctionNArguments* const uniform args)
{
  const int* uniform valid_in = args->valid;
  void* uniform geomUserPtr_in = args->geomUserPtr;

ray.Ng_z
}@@
}@@

@@{cpp
__programCount
=>
1
}@@

@@{ispc
__programCount
=>
programCount
}@@


