Closed ykozw closed 4 years ago
I figured out the function need mono-pointer, and I should calculate offsets together.
using Int32P = enoki::Packet<int32_t, 8>;
using Uint16P = enoki::Packet<uint16_t, 8>;
void** ptr;
Int32P offsets = fun(&ptr);
Uint16P i = enoki::gather<Uint16P>(ptr,offsets);
Hi,
I would like to do dereference, something like this...
But can't compile this code. Secondly, I think enoki::gather<>() fits for this situation.
But it doesn't return desired result. Maybe gather<> presuppose pointer is not packet, I thought.
Any solution?
Thanks.