Closed tom-sakai601220 closed 4 years ago
I think it has to do with me using rtCurrentRay in a callable program. The code runs fine on Optix 5.x but I guess the newer versions of Optix have enforced some restrictions. I will update the code to have it run on 6.0
I have fixed the code. Can you try now and see if its working for you?
Thank you for changing the code.
I run sample I was caught exception as follows. OptiX Error: 'Invalid context (Details: Function "_rtProgramGetId" caught exception: Validation error: _Z6SampleR17MaterialParameterR5StateR19PerRayData_radiance function with semantic type BINDLESS_CALLABLE_PROGRAM accesses the rtCurrentRay semantic variable.)'
What's up??
I Develop under Optix 6.0,0.