pathfinder/shaders
John Vandenberg 91d821a1f2
fix typos (#556)
2024-03-05 10:56:30 +00:00
..
d3d9 Add ColorMatrix filter 2020-07-23 12:46:59 -07:00
d3d11 Add ColorMatrix filter 2020-07-23 12:46:59 -07:00
debug Update the debug UI 2020-06-23 13:15:59 -07:00
Makefile Update documentation for building shaders 2020-09-12 13:49:28 -07:00
README.md fix typos (#556) 2024-03-05 10:56:30 +00:00
blit.fs.glsl Rework the blit shader 2020-06-23 13:15:59 -07:00
blit.vs.glsl Rework the blit shader 2020-06-23 13:15:59 -07:00
clear.fs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
clear.vs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
demo_ground.fs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
demo_ground.vs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
fill_area.inc.glsl Add a new compute-based D3D11 backend 2020-06-23 13:10:06 -07:00
reproject.fs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
reproject.vs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
stencil.fs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
stencil.vs.glsl Only define `precision highp sampler2D` in OpenGL ES. 2020-05-08 16:59:40 -07:00
tile_fragment.inc.glsl Allow radial gradients to be evaluated with any nonzero discriminant, not just 2020-07-23 13:45:20 -07:00
tile_vertex.inc.glsl Add ColorMatrix filter 2020-07-23 12:46:59 -07:00

README.md

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.