Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ v run ~/.vmodules/antono2/vulkan/setup.vsh

From a source checkout, use `v run setup.vsh`. The script supports Ubuntu and
Debian, Fedora, Arch, openSUSE, macOS, and Windows with winget.
It installs native Vulkan tools and the VPM module, then verifies the result.
On Linux it installs a C compiler, Vulkan runtime tools, and the VPM module;
the bundled headers and Volk need no distribution development packages. The
macOS and Windows helpers still use the Vulkan SDK to provide runtime tooling,
but its headers are not required to compile this module. The script then
verifies the result.
For a read-only support check, run:

```sh
Expand Down
14 changes: 7 additions & 7 deletions setup.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ fn run(command string) ! {
fn install_linux() ! {
if command_exists('apt-get') {
run('sudo apt-get update')!
run('sudo apt-get install -y build-essential libvulkan-dev libvulkan-volk-dev mesa-vulkan-drivers vulkan-tools')!
run('sudo apt-get install -y build-essential libvulkan1 mesa-vulkan-drivers vulkan-tools')!
return
}
if command_exists('dnf') {
run('sudo dnf install -y gcc gcc-c++ vulkan-headers vulkan-loader-devel volk-devel vulkan-tools mesa-vulkan-drivers')!
run('sudo dnf install -y gcc gcc-c++ vulkan-loader vulkan-tools mesa-vulkan-drivers')!
return
}
if command_exists('pacman') {
run('sudo pacman -S --needed --noconfirm base-devel vulkan-headers vulkan-icd-loader vulkan-tools volk')!
run('sudo pacman -S --needed --noconfirm base-devel vulkan-icd-loader vulkan-tools')!
return
}
if command_exists('zypper') {
run('sudo zypper --non-interactive install -y gcc gcc-c++ vulkan-devel vulkan-tools volk-devel')!
run('sudo zypper --non-interactive install -y gcc gcc-c++ vulkan-tools')!
return
}
return error('unsupported Linux package manager; install Vulkan headers, the loader, Volk, vulkaninfo, and a Vulkan ICD, then rerun with --check')
return error('unsupported Linux package manager; install a C compiler, the Vulkan loader, vulkaninfo, and a Vulkan ICD, then rerun with --check')
}

fn install_macos() ! {
Expand Down Expand Up @@ -248,7 +248,7 @@ fn check() bool {
println(' Install or update the GPU vendor driver; the SDK does not provide a hardware driver.')
}
} else {
println('[warning] vulkaninfo is unavailable; SDK/loader runtime verification was skipped')
println('[warning] vulkaninfo is unavailable; Vulkan loader/device verification was skipped')
}
return ok
}
Expand Down Expand Up @@ -280,5 +280,5 @@ fn main() {
eprintln('\nSetup is incomplete. Resolve the missing items above and rerun with --check.')
exit(1)
}
println('\nVulkan development prerequisites are ready.')
println('\nVulkan module build prerequisites are ready; check runtime warnings above.')
}
Loading