1rtcNewBuffer(3)          Embree Ray Tracing Kernels 3          rtcNewBuffer(3)
2
3
4
5   NAME
6              rtcNewBuffer - creates a new data buffer
7
8   SYNOPSIS
9              #include <embree3/rtcore.h>
10
11              RTCBuffer rtcNewBuffer(
12                RTCDevice device,
13                size_t byteSize
14              );
15
16   DESCRIPTION
17       The rtcNewBuffer function creates a new data buffer object of specified
18       size in bytes (byteSize argument) that is bound to the specified device
19       (device argument).  The buffer object is reference counted with an ini‐
20       tial reference count of 1.  The returned buffer object can be  released
21       using the rtcReleaseBuffer API call.  The specified number of bytes are
22       allocated at buffer construction time and deallocated when  the  buffer
23       is destroyed.
24
25   EXIT STATUS
26       On  failure  NULL  is  returned  and  an  error code is set that can be
27       queried using rtcGetDeviceError.
28
29   SEE ALSO
30       [rtcRetainBuffer], [rtcReleaseBuffer]
31
32
33
34                                                               rtcNewBuffer(3)
Impressum