mirror of
https://github.com/italicsjenga/vello.git
synced 2024-10-18 07:21:30 +11:00
33d7b25a92
This adds a prefix sum test. This patch is also trying to get a little more serious about structuring both the test runner (toward the goal of collecting proper statistics) and pipeline stages for the tests. Still WIP but giving good results.
20 lines
450 B
GLSL
20 lines
450 B
GLSL
# Build file for shaders.
|
|
|
|
# You must have Vulkan tools in your path, or patch here.
|
|
|
|
glslang_validator = glslangValidator
|
|
spirv_cross = spirv-cross
|
|
|
|
rule glsl
|
|
command = $glslang_validator -V -o $out $in
|
|
|
|
rule hlsl
|
|
command = $spirv_cross --hlsl $in --output $out
|
|
|
|
rule msl
|
|
command = $spirv_cross --msl $in --output $out
|
|
|
|
build gen/prefix.spv: glsl prefix.comp
|
|
build gen/prefix.hlsl: hlsl gen/prefix.spv
|
|
build gen/prefix.msl: msl gen/prefix.spv
|