1RTCBufferType(3) Embree Ray Tracing Kernels 4 RTCBufferType(3)
2
3
4
5 NAME
6 RTCFormat - specifies format of data in buffers
7
8 SYNOPSIS
9 #include <embree4/rtcore_ray.h>
10
11 enum RTCBufferType
12 {
13 RTC_BUFFER_TYPE_INDEX = 0,
14 RTC_BUFFER_TYPE_VERTEX = 1,
15 RTC_BUFFER_TYPE_VERTEX_ATTRIBUTE = 2,
16 RTC_BUFFER_TYPE_NORMAL = 3,
17 RTC_BUFFER_TYPE_TANGENT = 4,
18 RTC_BUFFER_TYPE_NORMAL_DERIVATIVE = 5,
19
20 RTC_BUFFER_TYPE_GRID = 8,
21
22 RTC_BUFFER_TYPE_FACE = 16,
23 RTC_BUFFER_TYPE_LEVEL = 17,
24 RTC_BUFFER_TYPE_EDGE_CREASE_INDEX = 18,
25 RTC_BUFFER_TYPE_EDGE_CREASE_WEIGHT = 19,
26 RTC_BUFFER_TYPE_VERTEX_CREASE_INDEX = 20,
27 RTC_BUFFER_TYPE_VERTEX_CREASE_WEIGHT = 21,
28 RTC_BUFFER_TYPE_HOLE = 22,
29
30 RTC_BUFFER_TYPE_TRANSFORM = 23,
31
32 RTC_BUFFER_TYPE_FLAGS = 32
33 };
34
35 DESCRIPTION
36 The RTBufferType structure defines slots to assign data buffers to us‐
37 ing the [rtcSetGeometryBuffer], [rtcSetSharedGeometryBuffer], and [rtc‐
38 SetNewGeometryBuffer] API calls.
39
40 For most geometry types the RTC_BUFFER_TYPE_INDEX slot is used to as‐
41 sign an index buffer, while the RTC_BUFFER_TYPE_VERTEX is used to as‐
42 sign the corresponding vertex buffer.
43
44 The RTC_BUFFER_TYPE_VERTEX_ATTRIBUTE slot can get used to assign arbi‐
45 trary additional vertex data which can get interpolated using the
46 [rtcInterpolate] API call.
47
48 The RTC_BUFFER_TYPE_NORMAL, RTC_BUFFER_TYPE_TANGENT, and RTC_BUF‐
49 FER_TYPE_NORMAL_DERIVATIVE are special buffers required to assign per
50 vertex normals, tangents, and normal derivatives for some curve types.
51
52 The RTC_BUFFER_TYPE_GRID buffer is used to assign the grid primitive
53 buffer for grid geometries (see [RTC_GEOMETRY_TYPE_GRID]).
54
55 The RTC_BUFFER_TYPE_FACE, RTC_BUFFER_TYPE_LEVEL, RTC_BUF‐
56 FER_TYPE_EDGE_CREASE_INDEX, RTC_BUFFER_TYPE_EDGE_CREASE_WEIGHT,
57 RTC_BUFFER_TYPE_VERTEX_CREASE_INDEX, RTC_BUFFER_TYPE_VER‐
58 TEX_CREASE_WEIGHT, and RTC_BUFFER_TYPE_HOLE are special buffers re‐
59 quired to create subdivision meshes (see [RTC_GEOMETRY_TYPE_SUBDIVI‐
60 SION]).
61
62 The RTC_BUFFER_TYPE_TRANSFORM buffer is used to provide instance trans‐
63 formation information for instance array geometries (see [RTC_GEOME‐
64 TRY_TYPE_INSTANCE_ARRAY]).
65
66 The RTC_BUFFER_TYPE_FLAGS can get used to add additional flag per prim‐
67 itive of a geometry, and is currently only used for linear curves.
68
69 EXIT STATUS
70 SEE ALSO
71 [rtcSetGeometryBuffer], [rtcSetSharedGeometryBuffer], [rtcSetNewGeome‐
72 tryBuffer]
73
74
75
76 RTCBufferType(3)