   const void* valid_in = args->valid;
   void* geomUserPtr_in = args->geomUserPtr;
   COMMENT RTCIntersectContext* context_in = args->context;
-  RTCRayHit8& ray_in = *(RTCRayHit8*) args->ray;
+  RTCRayHit8& ray_in = *(RTCRayHit8*) args->rayhit;
   unsigned int N_in = args->N;
   unsigned int primID_in = args->primID;
   assert(N_in == 8);

  void* geomUserPtr_in = args->geomUserPtr;
  COMMENT RTCIntersectContext* context = args->context;
  COMMENT RTCRay4& ray_in = *(RTCRay4*) args->ray;
  RTCHit4* potentialHit = (RTCHit4*) args->potentialHit;
  #warning FIXME: use potentialHit to access hit
  #warning FIXME: reject hit through *valid_in = 0 instead of ray_in.geomID = RTC_INVALID_GEOMETRY_ID;
  unsigned int N = args->N;
  assert(N == 4);

@@{
ray_in.
=>
hit->
}@@
}@@

