2020-04-06 12:11:37 -07:00
|
|
|
# Build file for shaders.
|
|
|
|
|
2021-05-28 15:17:36 -07:00
|
|
|
# You must have Vulkan tools in your path, or patch here.
|
2020-04-06 12:11:37 -07:00
|
|
|
|
|
|
|
glslang_validator = glslangValidator
|
2021-05-28 15:17:36 -07:00
|
|
|
spirv_cross = spirv-cross
|
2020-04-06 12:11:37 -07:00
|
|
|
|
|
|
|
rule glsl
|
|
|
|
command = $glslang_validator -V -o $out $in
|
|
|
|
|
2021-05-28 15:17:36 -07:00
|
|
|
rule hlsl
|
|
|
|
command = $spirv_cross --hlsl $in --output $out
|
|
|
|
|
|
|
|
rule msl
|
|
|
|
command = $spirv_cross --msl $in --output $out
|
|
|
|
|
|
|
|
build gen/collatz.spv: glsl collatz.comp
|
|
|
|
build gen/collatz.hlsl: hlsl gen/collatz.spv
|
|
|
|
build gen/collatz.msl: msl gen/collatz.spv
|