pathfinder/shaders
Michael Tang f8209946e3 Update documentation for building shaders 2020-09-12 13:49:28 -07:00
..
d3d9 Rename the existing renderer to `d3d9` in preparation for the D3D11 branch 2020-06-23 13:10:05 -07:00
d3d11 Add a new compute-based D3D11 backend 2020-06-23 13:10:06 -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 Update documentation for building shaders 2020-09-12 13:49:28 -07: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 Rename the existing renderer to `d3d9` in preparation for the D3D11 branch 2020-06-23 13:10:05 -07:00
tile_vertex.inc.glsl Rename the existing renderer to `d3d9` in preparation for the D3D11 branch 2020-06-23 13:10:05 -07:00

README.md

Building the shaders

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