You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document describes how to regenerate the shaders used by Pathfinder. Unless
4
+
you have modified files in this directory, regenerating the shaders is not
5
+
necessary to use Pathfinder or do most kinds of development on it.
6
+
7
+
You will need `glslangValidator` and `spirv-cross` installed to execute the
8
+
Makefile from this directory. You can speed up the build by parallelizing the
9
+
build: `make -j`.
10
+
11
+
## macOS
12
+
13
+
You can use [Homebrew](https://brew.sh/) to install the dependencies:
14
+
15
+
```sh
16
+
brew install glslang spirv-cross
17
+
```
18
+
19
+
## Windows
20
+
21
+
`glslangValidator` and `spirv-cross` are available by installing the
22
+
[Vulkan SDK](https://vulkan.lunarg.com/sdk/home). You'll also need some commands
23
+
like `make`, `rm`, etc. These are available on the
24
+
[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
25
+
shell. You'll need to set these environment variables for `make` to succeed:
26
+
27
+
```sh
28
+
export GLSLANG=glslangValidator.exe
29
+
export SPIRVCROSS=spirv-cross.exe
30
+
```
31
+
32
+
Note: the Windows versions of `glslangValidator` and `spirv-cross` may change
33
+
the line endings of the generated output. Please take care to ensure that
34
+
unintended line ending changes aren't accidentally commited, for instance by
35
+
[configuring Git to automatically handle line endings](https://docs.github.com/en/github/using-git/configuring-git-to-handle-line-endings#global-settings-for-line-endings).
0 commit comments