1RTCBufferType(3) Embree Ray Tracing Kernels 3 RTCBufferType(3)
2
3
4
5 NAME
6 RTCFormat - specifies format of data in buffers
7
8 SYNOPSIS
9 #include <embree3/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_FLAGS = 32
31 };
32
33 DESCRIPTION
34 The RTBufferType structure defines slots to assign data buffers to us‐
35 ing the [rtcSetGeometryBuffer], [rtcSetSharedGeometryBuffer], and [rtc‐
36 SetNewGeometryBuffer] API calls.
37
38 For most geometry types the RTC_BUFFER_TYPE_INDEX slot is used to as‐
39 sign an index buffer, while the RTC_BUFFER_TYPE_VERTEX is used to as‐
40 sign the corresponding vertex buffer.
41
42 The RTC_BUFFER_TYPE_VERTEX_ATTRIBUTE slot can get used to assign arbi‐
43 trary additional vertex data which can get interpolated using the
44 [rtcInterpolate] API call.
45
46 The RTC_BUFFER_TYPE_NORMAL, RTC_BUFFER_TYPE_TANGENT, and RTC_BUF‐
47 FER_TYPE_NORMAL_DERIVATIVE are special buffers required to assign per
48 vertex normals, tangents, and normal derivatives for some curve types.
49
50 The RTC_BUFFER_TYPE_GRID buffer is used to assign the grid primitive
51 buffer for grid geometries (see [RTC_GEOMETRY_TYPE_GRID]).
52
53 The RTC_BUFFER_TYPE_FACE, RTC_BUFFER_TYPE_LEVEL, RTC_BUF‐
54 FER_TYPE_EDGE_CREASE_INDEX, RTC_BUFFER_TYPE_EDGE_CREASE_WEIGHT,
55 RTC_BUFFER_TYPE_VERTEX_CREASE_INDEX, RTC_BUFFER_TYPE_VER‐
56 TEX_CREASE_WEIGHT, and RTC_BUFFER_TYPE_HOLE are special buffers re‐
57 quired to create subdivision meshes (see [RTC_GEOMETRY_TYPE_SUBDIVI‐
58 SION]).
59
60 The RTC_BUFFER_TYPE_FLAGS can get used to add additional flag per prim‐
61 itive of a geometry, and is currently only used for linear curves.
62
63 EXIT STATUS
64 SEE ALSO
65 [rtcSetGeometryBuffer], [rtcSetSharedGeometryBuffer], [rtcSetNewGeome‐
66 tryBuffer]
67
68
69
70 RTCBufferType(3)