1rtcInitRayQueryContext(3)Embree Ray Tracing Kernels 4rtcInitRayQueryContext(3)
2
3
4
5   NAME
6              rtcInitRayQueryContext - initializes the ray query context
7
8   SYNOPSIS
9              #include <embree4/rtcore.h>
10
11              struct RTCRayQueryContext
12              {
13                #if RTC_MAX_INSTANCE_LEVEL_COUNT > 1
14                  unsigned int instStackSize;
15                #endif
16
17                unsigned int instID[RTC_MAX_INSTANCE_LEVEL_COUNT];
18              };
19
20              void rtcInitRayQueryContext(
21                struct RTCRayQueryContext* context
22              );
23
24   DESCRIPTION
25       The  rtcInitRayQueryContext  function initializes the intersection con‐
26       text to default values and should be called  to  initialize  every  ray
27       query context.
28
29       It  is  guaranteed  that  the pointer to the ray query context (RTCRay‐
30       QueryContext type) is passed  to  the  registered  callback  functions.
31       This  way it is possible to attach arbitrary data to the end of the ray
32       query context, such as a per-ray payload.
33
34       Inside the user geometry callback the ray query context can get used to
35       access the instID stack to know which instance the user geometry object
36       resides.
37
38       If not ray query context is specified when tracing  a  ray,  a  default
39       context is used.
40
41   EXIT STATUS
42       No error code is set by this function.
43
44   SEE ALSO
45       [rtcIntersect1],   [rtcIntersect4/8/16],   [rtcOccluded1],  [rtcOcclud‐
46       ed4/8/16]
47
48
49
50                                                     rtcInitRayQueryContext(3)
Impressum