Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Fix build of RHI examples (temporarily) (#8213)
Issue: # ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 5bc5eb1</samp> This pull request fixes some bugs and improves the compatibility of the `rhi_examples` that demonstrate the use of the Vulkan backend for the Taichi programming language. It fixes the linking error in `CMakeLists.txt`, the Vulkan loader initialization in `common.h`, and the swapchain recreation in `vulkan_device.cpp`. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at 5bc5eb1</samp> * Fix linking error for rhi_examples by using `taichi_core` library ([link](https://github.com/taichi-dev/taichi/pull/8213/files?diff=unified&w=0#diff-ce18c0b2ae4fee335806357f23ceb248ed7b32ab121fdd4f750e5856bfc65328L27-R27)) * Initialize Vulkan loader for GLFW to create Vulkan window and surface ([link](https://github.com/taichi-dev/taichi/pull/8213/files?diff=unified&w=0#diff-675d40050ebb39182902d37dca8b430ff301ef0a6834221993580761300c850eR48)) * Handle `VK_SUBOPTIMAL_KHR` result from `vkAcquireNextImageKHR` to avoid aborting program and allow swapchain recreation ([link](https://github.com/taichi-dev/taichi/pull/8213/files?diff=unified&w=0#diff-4479f242ce99cd434c015531997155aa7faa38fb3ead6b0997caf097b05cecb8L2807-R2809)) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information