The commit 44a61fad814de0a95a4d582f0b0db20e89394360 broke the initialization of the OptiX denoiser in pbrt-v4\src\pbrt\gpu\denoiser.cpp
Previously there were two code blocks with calls to optixDenoiserCreate() inside a define #if #else #endif. This was changed to three blocks of code inside a define #if #elif #else #endif, but only the last two blocks contained calls to optixDenoiserCreate(), so for the first block used by OptiX 8.0.0 the denoiserHandle was not being initialized.
Easy fix, just add a #endif after the newly added #if that sets the denoiseAlpha parameter for 8.0.0, and change the subsequent #elif back to a #if
The commit 44a61fad814de0a95a4d582f0b0db20e89394360 broke the initialization of the OptiX denoiser in pbrt-v4\src\pbrt\gpu\denoiser.cpp
Previously there were two code blocks with calls to optixDenoiserCreate() inside a define #if #else #endif. This was changed to three blocks of code inside a define #if #elif #else #endif, but only the last two blocks contained calls to optixDenoiserCreate(), so for the first block used by OptiX 8.0.0 the denoiserHandle was not being initialized.
Easy fix, just add a #endif after the newly added #if that sets the denoiseAlpha parameter for 8.0.0, and change the subsequent #elif back to a #if