RTCRay(3)
π RTCRay β bestie edition β¨
okay so this is the manual for RTCRay(3) from the Embree Ray Tracing Kernels 4 era, and ngl it's a short one but it's so important, iykyk. buckle up, it's the combined ray/hit structure and she is lowkey the main character of every intersection query you'll ever run π
πΈ NAME πΈ
RTCRayHit β the combined single ray/hit structure. one struct, two jobs, no notes π
β¨ SYNOPSIS β¨
#include <embree4/rtcore_ray.h>
struct RTCORE_ALIGN(16) RTCRayHit
{
struct RTCRay ray;
struct RTCHit hit;
};
like. look at her. aligned to 16, holding a ray and a hit. iconic behavior fr fr π«Ά
π¦ DESCRIPTION π¦
so the RTCRayHit structure is literally what you hand to the rtcIntersect-type functions, okay? you put your ray in, and afterwards those hit fields are holding the intersection result. it's giving "input now, answer later" and honestly? obsessed π
the embree4/rtcore_ray.h header also defines the exact same ray/hit structure in structure of array (SOA) layout, for the API functions that take ray packets. and the sizes are:
- packets of size 4 β the
RTCRayHit4type - packets of size 8 β the
RTCRayHit8type - packets of size 16 β the
RTCRayHit16type
and on top of all that, the header also defines an RTCRayHitNt template so you can generate ray/hit packets of any arbitrary compile-time size you want. custom sizes? we love to see it π
π EXIT STATUS π
not me checking this section and it's justβ¦ empty. nothing here bestie, genuinely nothing. no exit status, no vibe check, just silence π
π SEE ALSO π
[RTCRay][RTCHit]
go read those two next, they're the whole squad fr π
and that's the page!! brought to you by Embree Ray Tracing Kernels 4, filed under RTCRay(3) in the manual pages β mwah, love u, go intersect something pretty β¨π
π¦ where this page comes from
- alpine 3.24: embree-doc 4.4.1-r0 Β· Apache-2.0
- arch rolling: embree 4.4.1-1 Β· Apache-2.0
- fedora 43: embree 4.4.1-1.fc43 Β· Apache-2.0
- fedora 44: embree 4.4.1-1.fc44 Β· Apache-2.0
- nixpkgs unstable: embree 4.4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms