2020-04-07 05:11:37 +10:00
|
|
|
# Build file for shaders.
|
|
|
|
|
2021-05-29 08:17:36 +10:00
|
|
|
# You must have Vulkan tools in your path, or patch here.
|
2020-04-07 05:11:37 +10:00
|
|
|
|
|
|
|
glslang_validator = glslangValidator
|
2021-05-29 08:17:36 +10:00
|
|
|
spirv_cross = spirv-cross
|
2021-11-12 06:48:58 +11:00
|
|
|
dxc = dxc
|
2020-04-07 05:11:37 +10:00
|
|
|
|
|
|
|
rule glsl
|
|
|
|
command = $glslang_validator -V -o $out $in
|
|
|
|
|
2021-05-29 08:17:36 +10:00
|
|
|
rule hlsl
|
|
|
|
command = $spirv_cross --hlsl $in --output $out
|
|
|
|
|
2021-11-12 06:48:58 +11:00
|
|
|
rule dxil
|
|
|
|
command = $dxc -T cs_6_0 $in -Fo $out
|
|
|
|
|
2021-05-29 08:17:36 +10: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-12 06:48:58 +11:00
|
|
|
build gen/collatz.dxil: dxil gen/collatz.hlsl
|
2021-05-29 08:17:36 +10:00
|
|
|
build gen/collatz.msl: msl gen/collatz.spv
|