Is there any way to declare a dynamically sized array payload in optix? I've googled and read the Optix documentation, only to find that Optix doesn't allow the use of malloc. Is there any way I could do something like the following?
struct PerRayData_radiance
{
float3 result;
float importance;
int depth;
float stuff[N];
};
Were I size the array stuff to size N depending on some user parameters.
I tried searching the NVIDIA forums for past questions but it seems like it has been shut down due to some security issues.