I’m trying to implement BPT in OPTIX. I need to save sampled path nodes in an array like this:
Then, I tried to reference members in path with an index. But it seems I’m only allowed to provide an index that can be evaluated at compile time, such as path. While I only got exception colors if I try to reference with arbitrary indices, say path, where x is computed at run time. Is this supported? If it is, what should I do to make it happen?