RTCRay(3)
π NAME π
RTCRayHit β the combined single ray/hit structure, aka the iconic duo where your ray and its hit result share one lil struct π«Ά
β¨ SYNOPSIS β¨
#include <embree3/rtcore_ray.h>
struct RTCORE_ALIGN(16) RTCRayHit
{
struct RTCRay ray;
struct RTCHit hit;
};
π¦ DESCRIPTION π¦
okay so bestie, listen. RTCRayHit is what you hand over as input to the rtcIntersect-type functions. It holds two things: the ray you wanna intersect, and then some hit fields that get filled in with the intersection result afterwards. It's giving "one struct, two jobs, main character energy" π
The embree3/rtcore_ray.h header is not done spoiling you though. It additionally defines the very same ray/hit structure in structure of array (SOA) layout, for the API functions that accept ray packets:
- packets of size 4 β
RTCRayHit4type - packets of size 8 β
RTCRayHit8type - packets of size 16 β
RTCRayHit16type
and on top of that, the header also defines an RTCRayHitNt template so you can generate ray/hit packets of an arbitrary compile-time size. obsessed, fr fr π
π EXIT STATUS π
no cap, this section is literally empty in the original. nothing to report, bestie π
π SEE ALSO π
[RTCRay][RTCHit]
and that's the whole vibe check, bestie β¨ this was RTCRay(3) from the Embree Ray Tracing Kernels 3 era β go forth and intersect responsibly ππΈπ¦
π¦ where this page comes from
- epel 9: embree 3.13.5-4.el9 Β· Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 Β· Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms