rtcOccludedNp(3)
β¨ rtcOccludedNp(3) β¨
ok so bestie, we're in the Embree Ray Tracing Kernels 3 manual, and today's main character is rtcOccludedNp β the function that finds any hits for a SOA ray stream of size N. no cap, she's giving efficiency queen energy π
π NAME π
rtcOccludedNp β finds any hits for a SOA ray stream of size N
π¦ SYNOPSIS π¦
#include <embree3/rtcore.h>
void rtcOccludedNp(
RTCScene scene,
struct RTCIntersectContext* context,
struct RTCRayNp* ray,
unsigned int N
);
πΈ DESCRIPTION πΈ
so rtcOccludedNp literally checks whether there are any hits for a SOA ray stream (that's the ray argument, and she's of size N β basically a big ol' ray packet) against the scene (the scene argument). π«Ά
here's the tea about ray: it points to a structure of pointers, with one pointer for each ray component. and each one of those pointers points to an array holding the ray component data for every single ray. the way this slaps is that the individual components of the SOA ray stream do not need to be stored sequentially in memory β which is exactly what makes it possible to have large, varying size ray packets in SOA layout. iconic behavior, honestly. β¨
if you wanna know how to actually set up and trace occlusion rays, go look at Section [rtcOccluded1], she has the full breakdown. π
heads up bestie: a ray in a ray stream is considered inactive if itstnearvalue is larger than itstfarvalue. π
the stream size N can be an arbitrary positive integer, including 0 (yes, zero counts, she's valid). and every single ray component array must be aligned to 16 bytes β that part is not a vibe, that part is a requirement. π
π EXIT STATUS π
for performance reasons, this function does not do any error checks, so she will not set any error flags on failure. periodt. no notes, just speed. π₯
π SEE ALSO π
[rtcIntersectNp]
and that's the whole page, bestie! π this one came straight out of the Embree Ray Tracing Kernels 3 manual, and the page is rtcOccludedNp(3). go forth and trace those occlusion rays, you absolute legend π π§ β
π¦ where this page comes from
- debian bookworm: libembree-dev 3.13.5+dfsg-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms