1RTCRayHitN(3)            Embree Ray Tracing Kernels 4            RTCRayHitN(3)
2
3
4
5   NAME
6              RTCRayHitN - combined ray/hit packet of runtime size
7
8   SYNOPSIS
9              #include <embree4/rtcore_ray.h>
10
11              struct RTCRayHitN;
12
13              struct RTCRayN* RTCRayHitN_RayN(struct RTCRayHitN* rayhit, unsigned int N);
14              struct RTCHitN* RTCRayHitN_HitN(struct RTCRayHitN* rayhit, unsigned int N);
15
16   DESCRIPTION
17       When  the  packet  size  of a ray/hit structure is not known at compile
18       time (e.g. when Embree returns a ray/hit packet  in  the  RTCIntersect‐
19       FunctionN  callback  function), Embree uses the RTCRayHitN type for ray
20       packets.  These ray/hit packets can only have sizes of 1, 4, 8, or  16.
21       No other packet size will be used.
22
23       You can either implement different special code paths for each of these
24       possible packet sizes and cast the ray/hit to the  appropriate  ray/hit
25       packet  type,  or  extract the RTCRayN and RTCHitN components using the
26       rtcGetRayN and rtcGetHitN helper functions and use the RTCRayN_XXX  and
27       RTCHitN_XXX functions to access the ray and hit parts of the structure.
28
29   EXIT STATUS
30   SEE ALSO
31       [RTCHitN]
32
33
34
35                                                                 RTCRayHitN(3)
Impressum