pathfinder/resources/shaders
Patrick Walton 487577a11b Add Metal support.
This commit substantially reworks the `pathfinder_gpu` API to better support
modern APIs like Metal. It should open the door to `gfx-rs`, `wgpu`, Vulkan,
and D3D12 backends relatively straightforwardly.

A new example, `canvas_metal_minimal`, has been added.

Note that the new Metal shaders require a patched version of `spirv-cross` to
build properly. An upstream patch is forthcoming.
2019-06-20 11:47:22 -07:00
..
gl3 Add Metal support. 2019-06-20 11:47:22 -07:00
metal Add Metal support. 2019-06-20 11:47:22 -07:00
README.md Add Metal shaders, cross-compiled from the GLSL via SPIR-V. 2019-06-05 18:29:25 -07:00

README.md

This directory contains postprocessed versions of the shaders in the top-level shaders/ directory, for convenience. Don't modify the shaders here; instead modify the corresponding shaders in shaders/ and rerun make in that directory.

You will need glslangValidator and spirv-cross installed to execute the Makefile. On macOS, you can get these with brew install glslang spirv-cross.