Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 665 Bytes

File metadata and controls

38 lines (26 loc) · 665 Bytes

Linux setup notes

Vulkan build prerequisites

If cargo build --features vulkan fails with:

  • Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR glslc)

install the Vulkan development packages and GLSL compiler:

sudo apt update
sudo apt install -y libvulkan-dev vulkan-tools glslc

Notes:

  • On Ubuntu Questing, shaderc is not a valid package name.
  • If needed, use libshaderc-dev instead:
sudo apt install -y libshaderc-dev

Verify installation

command -v glslc
command -v vulkaninfo
ls /usr/include/vulkan/vulkan.h

Build with Vulkan

cargo clean
cargo build --features vulkan