RTCUPDATEGEOMETRYBUFFER(3)

πŸ’– rtcUpdateGeometryBuffer β€” the glow-up button for your buffers πŸ’–

okay bestie, welcome to the Embree Ray Tracing Kernels 4 manual, page rtcUpdate...etryBuffer(3). yes the title is abbreviated, no i don't make the rules. let's get into it 🫢


✨ NAME ✨

rtcUpdateGeometryBuffer β€” marks a buffer view bound to the geometry as modified πŸ’…

like, it taps the buffer on the shoulder and goes "hey girl, you changed, i see you, i'm telling the scene about it."


🌸 SYNOPSIS 🌸

#include <embree4/rtcore.h>

void rtcUpdateGeometryBuffer(
  RTCGeometry geometry,
  enum RTCBufferType type,
  unsigned int slot
);

look at her. three little args. iconic. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the tea is this: the rtcUpdateGeometryBuffer function marks the buffer view bound to the specified buffer type and slot (that's the type and slot arguments) of a geometry (that's the geometry argument) as modified. periodt.

if a data buffer is changed by the application, the rtcUpdateGeometryBuffer call must be invoked for that buffer. like, not optional, bestie, this is the vibe check your buffer has to pass. 😭

but here's the cute part β€” each buffer view assigned to a buffer slot is initially marked as modified, so this function only needs to be called when you're doing buffer modifications after the first rtcCommitScene. so if you haven't committed yet? you're fine. go off. πŸ’–


πŸ’€ EXIT STATUS πŸ’€

on failure an error code is set that can be queried using rtcGetDeviceError. so if something goes sideways, that's where you go snooping. πŸ”


πŸŽ€ SEE ALSO πŸŽ€

  • [rtcNewGeometry]
  • [rtcCommitScene]

the squad. the friend group. iykyk. 🌈


and that's the whole page, babes β€” brought to you by the Embree Ray Tracing Kernels 4, dated right there in the footer as rtcUpdate...etryBuffer(3). stay modified, stay slaying, and don't forget to update your buffers after that first commit or the whole scene will be giving... nothing. πŸ˜ŒπŸ’…βœ¨

πŸ“¦ where this page comes from