2020-04-17 07:04:40 +10:00
|
|
|
# Build file for shaders.
|
|
|
|
|
2021-11-24 02:28:50 +11:00
|
|
|
# You must have Vulkan tools in your path, or patch here.
|
2020-04-17 07:04:40 +10:00
|
|
|
|
|
|
|
glslang_validator = glslangValidator
|
2021-11-24 02:28:50 +11:00
|
|
|
spirv_cross = spirv-cross
|
|
|
|
dxc = dxc
|
|
|
|
|
|
|
|
# See https://github.com/KhronosGroup/SPIRV-Cross/issues/1248 for
|
|
|
|
# why we set this.
|
|
|
|
msl_flags = --msl-decoration-binding
|
2020-04-17 07:04:40 +10:00
|
|
|
|
|
|
|
rule glsl
|
2021-04-03 12:59:07 +11:00
|
|
|
command = $glslang_validator $flags -V -o $out $in
|
2020-04-17 07:04:40 +10:00
|
|
|
|
2021-11-24 02:28:50 +11:00
|
|
|
rule hlsl
|
|
|
|
command = $spirv_cross --hlsl $in --output $out
|
|
|
|
|
|
|
|
rule dxil
|
|
|
|
command = $dxc -T cs_6_0 $in -Fo $out
|
|
|
|
|
|
|
|
rule msl
|
|
|
|
command = $spirv_cross --msl $in --output $out $msl_flags
|
|
|
|
|
2020-05-12 13:01:06 +10:00
|
|
|
|
2020-05-13 06:38:26 +10:00
|
|
|
build elements.spv: glsl elements.comp | scene.h state.h annotated.h
|
|
|
|
|
2020-05-21 09:36:09 +10:00
|
|
|
build binning.spv: glsl binning.comp | annotated.h state.h bins.h setup.h
|
2020-05-14 08:35:19 +10:00
|
|
|
|
2020-06-03 10:10:20 +10:00
|
|
|
build tile_alloc.spv: glsl tile_alloc.comp | annotated.h tile.h setup.h
|
|
|
|
|
2020-06-10 09:01:47 +10:00
|
|
|
build path_coarse.spv: glsl path_coarse.comp | annotated.h pathseg.h tile.h setup.h
|
2020-06-03 10:10:20 +10:00
|
|
|
|
2020-06-06 08:07:02 +10:00
|
|
|
build backdrop.spv: glsl backdrop.comp | annotated.h tile.h setup.h
|
|
|
|
|
2021-06-08 17:29:40 +10:00
|
|
|
build backdrop_lg.spv: glsl backdrop.comp | annotated.h tile.h setup.h
|
|
|
|
flags = -DBACKDROP_DIST_FACTOR=4
|
|
|
|
|
2020-05-14 08:35:19 +10:00
|
|
|
build coarse.spv: glsl coarse.comp | annotated.h bins.h ptcl.h setup.h
|
2020-05-16 08:20:25 +10:00
|
|
|
|
|
|
|
build kernel4.spv: glsl kernel4.comp | ptcl.h setup.h
|
2021-11-24 02:28:50 +11:00
|
|
|
|
|
|
|
# New element pipeline follows
|
|
|
|
|
|
|
|
build gen/transform_reduce.spv: glsl transform_reduce.comp | scene.h setup.h mem.h
|
|
|
|
build gen/transform_reduce.hlsl: hlsl gen/transform_reduce.spv
|
|
|
|
build gen/transform_reduce.dxil: dxil gen/transform_reduce.hlsl
|
|
|
|
build gen/transform_reduce.msl: msl gen/transform_reduce.spv
|
|
|
|
|
|
|
|
build gen/transform_root.spv: glsl transform_scan.comp
|
|
|
|
flags = -DROOT
|
|
|
|
build gen/transform_root.hlsl: hlsl gen/transform_root.spv
|
|
|
|
build gen/transform_root.dxil: dxil gen/transform_root.hlsl
|
|
|
|
build gen/transform_root.msl: msl gen/transform_root.spv
|
|
|
|
|
|
|
|
build gen/transform_leaf.spv: glsl transform_leaf.comp | scene.h tile.h setup.h mem.h
|
|
|
|
build gen/transform_leaf.hlsl: hlsl gen/transform_leaf.spv
|
|
|
|
build gen/transform_leaf.dxil: dxil gen/transform_leaf.hlsl
|
|
|
|
build gen/transform_leaf.msl: msl gen/transform_leaf.spv
|