RTCUPDATEGEOMETRYBUFFER(3embree3)
π rtcUpdateGeometryBuffer β bestie, your buffer just got a glow-up notification β¨
okay so real talk, this one's from the Embree Ray Tracing Kernels 3 manual, section 3embree3, and the page is literally called rtcUpdateGeometryBuffer (the header just squishes it down to rtcUpdate...etryBuffer because manpage titles have no room for the full main-character name, tragic honestly π
).
πΈ NAME πΈ
rtcUpdateGeometryBuffer β tells the geometry that a buffer view it's holding onto has been modified, like a little "hey bestie, I changed something" tap on the shoulder π«Ά
π¦ SYNOPSIS π¦
#include <embree3/rtcore.h>
void rtcUpdateGeometryBuffer(
RTCGeometry geometry,
enum RTCBufferType type,
unsigned int slot
);
β¨ DESCRIPTION β¨
So here's the vibe. The rtcUpdateGeometryBuffer function marks the buffer view that's bound to the specified buffer type and slot (those are the type and slot arguments, bestie) of a geometry (that's the geometry argument, obviously) as modified. Marked. Flagged. Notified. Periodt. π
If a data buffer gets changed by the application β like you went in there and edited it yourself β then the rtcUpdateGeometryBuffer call must be invoked for that buffer. Not "should", not "would be nice if", must. No cap.
Here's the little detail that saves you work though: each buffer view assigned to a buffer slot is initially marked as modified already. So this function only needs to be called when you're doing buffer modifications after the first rtcCommitScene. First commit? You're already covered, gorgeous. π
π tl;dr vibe check: touch a buffer afterrtcCommitSceneβ callrtcUpdateGeometryBufferor Embree will not know. iykyk.
π EXIT STATUS π
On failure, an error code gets set, and you can go query it with rtcGetDeviceError. Not me checking the error code every single time π but you should, fr fr.
π SEE ALSO π
[rtcNewGeometry][rtcCommitScene]
and that's the whole page, angel π go forth and mark your buffers as modified, the Embree Ray Tracing Kernels 3 crew is rooting for you π (the footer is just the page title rtcUpdate...etryBuffer(3) again, section 3, no date on this one β iconic, mysterious, we love a low-effort footer β¨)
π¦ where this page comes from
- epel 9: embree 3.13.5-4.el9 Β· Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 Β· Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms