1rtcSetGeometryBuffer(3)  Embree Ray Tracing Kernels 3  rtcSetGeometryBuffer(3)
2
3
4
5   NAME
6              rtcSetGeometryBuffer - assigns a view of a buffer to the geometry
7
8   SYNOPSIS
9              #include <embree3/rtcore.h>
10
11              void rtcSetGeometryBuffer(
12                RTCGeometry geometry,
13                enum RTCBufferType type,
14                unsigned int slot,
15                enum RTCFormat format,
16                RTCBuffer buffer,
17                size_t byteOffset,
18                size_t byteStride,
19                size_t itemCount
20              );
21
22   DESCRIPTION
23       The rtcSetGeometryBuffer function binds a view of a buffer object (buf‐
24       fer argument) to a geometry buffer type and slot (type and  slot  argu‐
25       ment) of the specified geometry (geometry argument).
26
27       One  can  specify the start of the first buffer element in bytes (byte‐
28       Offset argument), the byte stride between  individual  buffer  elements
29       (byteStride  argument), the format of the buffer elements (format argu‐
30       ment), and the number of elements to bind (itemCount).
31
32       The start address (byteOffset argument) and  stride  (byteStride  argu‐
33       ment)  must  be  both aligned to 4 bytes, otherwise the rtcSetGeometry‐
34       Buffer function will fail.
35
36       After successful completion of this function, the geometry will hold  a
37       reference to the buffer object.
38
39   EXIT STATUS
40       On  failure  an  error  code is set that can be queried using rtcGetDe‐
41       viceError.
42
43   SEE ALSO
44       [rtcSetSharedGeometryBuffer], [rtcSetNewGeometryBuffer]
45
46
47
48                                                       rtcSetGeometryBuffer(3)
Impressum