I have read the programming guide of Optix 7. Although still confused by the new APIs, I can hardly wait to try the new SDK examples.
However, different from the legacy version, the new optixWhitted application catches exceptions when I click the show desktop icon to hide the GLFWwindow. The GLFWwindow can not be minimized as well.
Here is the message
Caught exception: CUDA call (cudaGraphicsGLRegisterBuffer( &m_cuda_gfx_resource, m_pbo, cudaGraphicsMapFlagsWriteDiscard ) ) failed with error: 'out of memory' (C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.0.0\SDK\sutil/CUDAOutputBuffer.h:184)
Applications with imGui such as optixPathTracer, suffer from the same problem. The bug do not affect performance of rayTracing, but sometimes really annoys developers.