Hi,
I have an application that worked as expected using Optix 3.8 and CUDA 7.5. I upgraded to CUDA 8 and Optix 4.0.2 and I’m getting this exception when calling launch for an optix context.
Invalid value (Details: Function “_rtContextLaunch2D” caught exception: Graphics resource must be the same size as OptiX buffer)
Before calling launch I call validate and get no exception.
The code was running with no issues on Otpix 3.8, but I assume that I was already doing something wrong, and the new version provides stronger validation.
I checked all calls to createBufferFromGLBO and respective setsize and they all seem to be correct (I’m using setsize to pass the number of elements, not the number of bytes). All the calls to createBufferFromGLBO are inside a try-catch and no exceptions are thrown there.
Can you provide me with a clue on where to look for the issue?
Thanks in advance,
António