rtcUpdateGeometryBuffer.3embree3 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .TH "rtcUpdateGeometryBuffer" "3" "" "" "Embree Ray Tracing Kernels 3"
  2. .SS NAME
  3. .IP
  4. .nf
  5. \f[C]
  6. rtcUpdateGeometryBuffer\ \-\ marks\ a\ buffer\ view\ bound\ to\ the\ geometry
  7. \ \ as\ modified
  8. \f[]
  9. .fi
  10. .SS SYNOPSIS
  11. .IP
  12. .nf
  13. \f[C]
  14. #include\ <embree3/rtcore.h>
  15. void\ rtcUpdateGeometryBuffer(
  16. \ \ RTCGeometry\ geometry,
  17. \ \ enum\ RTCBufferType\ type,
  18. \ \ unsigned\ int\ slot
  19. );
  20. \f[]
  21. .fi
  22. .SS DESCRIPTION
  23. .PP
  24. The \f[C]rtcUpdateGeometryBuffer\f[] function marks the buffer view
  25. bound to the specified buffer type and slot (\f[C]type\f[] and
  26. \f[C]slot\f[] argument) of a geometry (\f[C]geometry\f[] argument) as
  27. modified.
  28. .PP
  29. If a data buffer is changed by the application, the
  30. \f[C]rtcUpdateGeometryBuffer\f[] call must be invoked for that buffer.
  31. Each buffer view assigned to a buffer slot is initially marked as
  32. modified, thus this function needs to be called only when doing buffer
  33. modifications after the first \f[C]rtcCommitScene\f[].
  34. .SS EXIT STATUS
  35. .PP
  36. On failure an error code is set that can be queried using
  37. \f[C]rtcGetDeviceError\f[].
  38. .SS SEE ALSO
  39. .PP
  40. [rtcNewGeometry], [rtcCommitScene]