1rtcSetNewGeometryBuffer(3)Embree Ray Tracing Kernels 3rtcSetNewGeometryBuffer(3)
2
3
4
5   NAME
6              rtcSetNewGeometryBuffer - creates and assigns a new data buffer to
7                the geometry
8
9   SYNOPSIS
10              #include <embree3/rtcore.h>
11
12              void* rtcSetNewGeometryBuffer(
13                RTCGeometry geometry,
14                enum RTCBufferType type,
15                unsigned int slot,
16                enum RTCFormat format,
17                size_t byteStride,
18                size_t itemCount
19              );
20
21   DESCRIPTION
22       The rtcSetNewGeometryBuffer function creates a new data buffer of spec‐
23       ified format (format argument), byte stride (byteStride argument),  and
24       number of items (itemCount argument), and assigns it to a geometry buf‐
25       fer slot (type and slot argument) of the specified  geometry  (geometry
26       argument).   The  buffer  data  is managed internally and automatically
27       freed when the geometry is destroyed.
28
29       The byte stride (byteStride argument) must be aligned to 4 bytes;  oth‐
30       erwise the rtcSetNewGeometryBuffer function will fail.
31
32       The allocated buffer will be automatically over-allocated slightly when
33       used as a vertex buffer, where a requirement is that each  buffer  ele‐
34       ment should be readable using 16-byte SSE load instructions.
35
36   EXIT STATUS
37       On  failure  an  error  code is set that can be queried using rtcGetDe‐
38       viceError.
39
40   SEE ALSO
41       [rtcSetGeometryBuffer], [rtcSetSharedGeometryBuffer]
42
43
44
45                                                    rtcSetNewGeometryBuffer(3)
Impressum