rtcGetBufferData(3)

πŸ“¦ version 4.4.1, in ubuntu stonking

πŸ’– NAME πŸ’–

rtcGetBufferDataDevice β€” bestie, this one hands you a device pointer straight to your buffer's data ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <embree4/rtcore.h>

void* rtcGetBufferDataDevice(RTCBuffer buffer);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. rtcGetBufferDataDevice gives you back a pointer to the buffer data of the buffer object you passed in (that's the buffer argument, mwah πŸ’…). And like, the whole point of this pointer? It's for accessing the data on the device. that's it, that's the vibe 🌈

and here's the tea β˜• β€” if Embree has no SYCL support, OR the SYCL device has host unified memory, then this pointer is just literally equal to the pointer that rtcGetBufferData returns. same pointer, no cap, they're twinning 🫢


πŸ”₯ EXIT STATUS πŸ”₯

not me having to tell you this but β€” if it fails, an error code gets set 😭 you can go query it with rtcGetDeviceError. write that down bestie ✨

no return-value lore here, the error code is the whole story. check it or perish πŸ’€ (affectionately)

🌸 SEE ALSO 🌸

  • [rtcGetBufferData]
  • [rtcNewBuffer]

and that's the whole page, you absolute icon πŸ‘‘ this was rtcGetBufferData(3) from Embree Ray Tracing Kernels 4 β€” go forth and slay your ray tracing, bestie, ily πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from