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

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

  varying int* uniform vvalid_in = (varying int* uniform ) valid_in;
  void* uniform geomUserPtr_in = args->geomUserPtr;
  COMMENT RTCIntersectContext* uniform context_in = args->context;
  varying RTCRayHit* uniform ray_ptr_in = (varying RTCRayHit* uniform ) args->rayhit;
  varying RTCRayHit& ray_in = *ray_ptr_in;
  uniform unsigned int N_in = args->N;
  uniform unsigned int primID_in = args->primID;
