Skip to content

Commit edd0a67

Browse files
authored
Add docs for linux package requirements (#820)
1 parent 56ba2d2 commit edd0a67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/src/building-rust-gpu.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919

2020
This will build `rustc_codegen_spirv`, the compiler, then use that compiler to build [`sky-shader`](examples/shaders/sky-shader) into a SPIR-V module, then finally, build a `wgpu` sample app (modified from [`wgpu`'s examples](https://github.com/gfx-rs/wgpu-rs/tree/master/examples/hello-triangle)) using the built SPIR-V module to display the shader in a window.
2121
22+
## Prerequisite linux packages recommended to install before building Rust-GPU
23+
24+
You may need the development version (i.e. headers/etc. included) of some packages in some distributions to be able to
25+
build the examples - specifically, x11 and libxkbcommon, as well as gcc/clang with c++ support. These packages may be
26+
called (fedora) `libX11-devel`, `libxkbcommon-x11-devel`, and `gcc-c++`, or (ubuntu) `libxkbcommon-x11-dev`,
27+
`libx11-dev`, and `gcc`.
28+
2229
## Using installed SPIRV-Tools
2330
2431
By default, all of the crates and examples in this repo will compile the [`spirv-tools-sys`](https://crates.io/crates/spirv-tools-sys) crate, including a lot of C++ code from [SPIRV-Tools](https://github.com/EmbarkStudios/SPIRV-Tools). If you don't want to build the C++ code because you already have [SPIRV-Tools](https://github.com/KhronosGroup/SPIRV-Tools#downloads) installed, or just don't want to spend more time compiling, you can build/run the crate with the `use-installed-tools` feature.

0 commit comments

Comments
 (0)