mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.83k stars 440 forks source link

Compatibility with OptiX 8 #391

Closed Mike-Leo-Smith closed 11 months ago

Mike-Leo-Smith commented 11 months ago

As per the release notes of OptiX 8, some APIs have been changed, which break the compilation:

  1. The flag OPTIX_EXCEPTION_FLAG_DEBUG has been removed;
  2. OptixDenoiserAlphaMode was moved from OptixDenoiserParams to OptixDenoiserOptions.

This PR adds version guards for these changes to make PBRT-v4 compatible with OptiX 8.

mmp commented 11 months ago

Thanks!!