Sending custom data structures through rayGenParams #201
Unanswered
RohanG0407
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a data structure that looks like this.
Currently I am creating a device buffer like this
OWLBuffer IntersectionsBuffer = owlDeviceBufferCreate( context, OWL_USER_TYPE(levelIntersectionData[0]), levelIntersectionData.size(), levelIntersectionData.data());
and then settingowlRayGenSetBuffer(rayGen, "levelIntersectionData", IntersectionsBuffer);
On device side I am running into illegal memory accesses for the
pointIntersectionInfo
field in theLevelIntersectionInfo
struct because I believe this pointer still is referencing host memory. How would I go about sending nested structures like this with pointer arrays?Beta Was this translation helpful? Give feedback.
All reactions