Skip to content

Files

Latest commit

91d821a · Mar 5, 2024

History

History

shaders

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 23, 2020
Jul 23, 2020
Jun 23, 2020
Sep 12, 2020
Mar 5, 2024
Jun 23, 2020
Jun 23, 2020
May 8, 2020
May 8, 2020
May 8, 2020
May 8, 2020
Jun 23, 2020
May 8, 2020
May 8, 2020
May 8, 2020
May 8, 2020
Jul 23, 2020
Jul 23, 2020

Building the shaders

This document describes how to regenerate the shaders used by Pathfinder. Unless you have modified files in this directory, regenerating the shaders is not necessary to use Pathfinder or do most kinds of development on it.

You will need glslangValidator and spirv-cross installed to execute the Makefile from this directory. You can speed up the build by parallelizing the build: make -j.

macOS

You can use Homebrew to install the dependencies:

brew install glslang spirv-cross

Windows

glslangValidator and spirv-cross are available by installing the Vulkan SDK. You'll also need some commands like make, rm, etc. These are available on the Windows Subsystem for Linux shell. You'll need to set these environment variables for make to succeed:

export GLSLANG=glslangValidator.exe
export SPIRVCROSS=spirv-cross.exe

Note: the Windows versions of glslangValidator and spirv-cross may change the line endings of the generated output. Please take care to ensure that unintended line ending changes aren't accidentally committed, for instance by configuring Git to automatically handle line endings.