rtcGetGeo...ufferData(3)

πŸ’– rtcGetGeometryBufferData β€” bestie edition ✨

okay so you're in the Embree Ray Tracing Kernels 4 manual, page rtcGetGeo...ufferData(3), and we're talking about rtcGetGeometryBufferData β€” the girl whose whole job is handing you a pointer to the first buffer view element. no cap, that's it. that's the gig. πŸŽ€


✨ SYNOPSIS ✨

#include <embree4/rtcore.h>

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

🌸 DESCRIPTION 🌸

so like, rtcGetGeometryBufferData gives you back a pointer to the very first element of the buffer view that's attached to the buffer type + slot you asked for (those are the type and slot arguments, mwah πŸ’…), on the geometry you passed in (that's the geometry argument, obviously).

lowkey important: if the device that geometry belongs to is a SYCL device, then the pointer you get back is only accessible on the host. like, host-only, bestie. if you want a pointer you can actually touch from the SYCL device side, use rtcGetGeometryBufferDataDevice instead. she's the one for that job. πŸ¦‹

πŸ’€ EXIT STATUS πŸ’€

if it flops, an error code gets set, and you can go ask rtcGetDeviceError what went wrong. that's your girl for the receipts. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

  • rtcGetGeometryBufferDataDevice
  • rtcSetGeometryBuffer
  • rtcSetSharedGeometryBuffer
  • rtcSetNewGeometryBuffer

and that's the whole page, babe β€” brought to you by Embree Ray Tracing Kernels 4, filed under rtcGetGeo...ufferData(3). go get that pointer, you main character. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from