GPSnoopy / RayTracingInVulkan

Implementation of Peter Shirley's Ray Tracing In One Weekend book using Vulkan and NVIDIA's RTX extension.
BSD 3-Clause "New" or "Revised" License
1.27k stars 116 forks source link

Rebuild after Vulkan SDK Upgrade #72

Open kyamant opened 1 year ago

kyamant commented 1 year ago

In a windows 10 with VS 2022 environment, what would be the most efficient way to rebuild the solution after a Vulkan SDK Upgrade (hence VULKAN_SDK and VK_SDK_PATH environment variables are changed)?

GPSnoopy commented 1 year ago

The vcpkg_ script does not need to be re-run, only the build_ one does. Easiest is to just remove the ./build/windows/ directory and run build_windows.bat again.

A more complicated approach would be to use CMake(e.g. cmake-gui) to directly modify the path variable to the Vulkan SDK. But given that most files would need recompiling anyway, the approach above is probably the best.