1rtcIntersectNM(3) Embree Ray Tracing Kernels 3 rtcIntersectNM(3)
2
3
4
5 NAME
6 rtcIntersectNM - finds the closest hits for a stream of M
7 ray packets of size N
8
9 SYNOPSIS
10 #include <embree3/rtcore.h>
11
12 void rtcIntersectNM(
13 RTCScene scene,
14 struct RTCIntersectContext* context,
15 struct RTCRayHitN* rayhit,
16 unsigned int N,
17 unsigned int M,
18 size_t byteStride
19 );
20
21 DESCRIPTION
22 The rtcIntersectNM function finds the closest hits for a stream of M
23 ray packets (rayhit argument) of size N with the scene (scene argu‐
24 ment). The rays argument points to an array of ray and hit packets
25 with specified byte stride (byteStride argument) between the ray/hit
26 packets. See Section [rtcIntersect1] for a description of how to set
27 up and trace rays.
28
29 A ray in a ray stream is considered inactive if its tnear value is
30 larger than its tfar value.
31
32 The packet size N must be larger than 0, and the stream size M can be
33 an arbitrary positive integer including 0. Each ray must be aligned to
34 16 bytes.
35
36 EXIT STATUS
37 For performance reasons this function does not do any error checks,
38 thus will not set any error flags on failure.
39
40 SEE ALSO
41 [rtcOccludedNM]
42
43
44
45 rtcIntersectNM(3)