RTCTRAVERSABLEINTERSECT4(3)

πŸ“¦ version 4.4.1, in ubuntu stonking

πŸ’– NAME πŸ’–

rtcTravesableIntersect4/8/16 β€” the one that finds the closest hits for a ray packet 🌈

okay so real talk, this is the traversable version of the ray packet intersection vibe. Same energy, different object. Let's get into it bestie πŸ’…


✨ SYNOPSIS ✨

#include <embree4/rtcore.h>

void rtcTraversableIntersect4(
  const int* valid,
  RTCTraversable traversable,
  struct RTCRayHit4* rayhit,
  struct RTCIntersectArguments* args = NULL
);

void rtcTraversableIntersect8(
  const int* valid,
  RTCTraversable traversable,
  struct RTCRayHit8* rayhit,
  struct RTCIntersectArguments* args = NULL
);

void rtcTraversableIntersect16(
  const int* valid,
  RTCTraversable traversable,
  struct RTCRayHit16* rayhit,
  struct RTCIntersectArguments* args = NULL
);

three whole flavors, one for each packet size πŸ“ 4, 8, and 16. pick your girl, they're all iconic.


🌸 DESCRIPTION 🌸

so rtcTraversableIntersect4/8/16 are literally the same thing as rtcIntersect4/8/16 β€” no cap, same behavior, same whole deal β€” EXCEPT 🫢 they take a traversable object (that's the traversable argument, bestie, right there in the signature) instead of a scene object.

that's it. that's the plot twist. one arg swapped, everything else stays exactly the same vibe ✨

for the full lore β€” all the deets, all the nuance β€” go read the documentation of rtcIntersect4/8/16. it's giving "required reading". iykyk πŸ’œ


πŸ’€ EXIT STATUS πŸ’€

🚨 ok so listen, for performance reasons this function does not do any error checks. none. zero. not a single one. that means on failure it will not set any error flags. so if something goes wrong, girl, it will not tell you. it's giving silent treatment 😭

so like... check your own stuff. the function is not gonna hold your hand πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

  • rtcIntersect4/8/16 πŸ”₯
  • rtcGetSceneTraversable πŸ¦‹

that's the whole page bestie, go slay some ray packets πŸ’–πŸŒΈβœ¨

Embree Ray Tracing Kernels 4 β€” rtcTraver...sect4/8/16(3) πŸŽ€ periodt. mwah πŸ’‹

πŸ“¦ where this page comes from