I hope to implement a real-time renderer based on the Optix tool and embed it into my C++ code. I have chosen vs2022 as my development platform and do not plan to use cmake. I noticed that the Optix8 SDK provides the OptixConsole project, aimed at providing a way to guide users in developing on VS. Now, I have extracted the core code of OptixConsole separately, hoping to compile and run successfully on VS2022. I have configured the dependency paths for all header files, static libraries, etc., and compiled them successfully. But the problem came, and I encountered the following error while running the. exe file:
I think the error may have occurred because the program did not import cuda code. So what should I do now to import cuda program and make it run successfully?