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
|
2021-11-11 11:48:58 -08:00
|
|
|
dxc = dxc
|
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
|
|
|
|
|
2021-11-11 11:48:58 -08:00
|
|
|
rule dxil
|
|
|
|
command = $dxc -T cs_6_0 $in -Fo $out
|
|
|
|
|
2021-05-28 15:17:36 -07:00
|
|
|
rule msl
|
|
|
|
command = $spirv_cross --msl $in --output $out
|
|
|
|
|
|
|
|
build gen/collatz.spv: glsl collatz.comp
|
|
|
|
build gen/collatz.hlsl: hlsl gen/collatz.spv
|
2021-11-11 11:48:58 -08:00
|
|
|
build gen/collatz.dxil: dxil gen/collatz.hlsl
|
2021-05-28 15:17:36 -07:00
|
|
|
build gen/collatz.msl: msl gen/collatz.spv
|