mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-11 04:51:32 +11:00
115cb855d9
Don't run extensions unless they're available. This includes querying for descriptor indexing, and running one of two versions of kernel4 depending on whether it's enabled. Part of the support needed for #78
27 lines
783 B
Plaintext
27 lines
783 B
Plaintext
# Build file for shaders.
|
|
|
|
# You must have glslangValidator in your path, or patch here.
|
|
|
|
glslang_validator = glslangValidator
|
|
|
|
rule glsl
|
|
command = $glslang_validator $flags -V -o $out $in
|
|
|
|
|
|
build elements.spv: glsl elements.comp | scene.h state.h annotated.h
|
|
|
|
build binning.spv: glsl binning.comp | annotated.h state.h bins.h setup.h
|
|
|
|
build tile_alloc.spv: glsl tile_alloc.comp | annotated.h tile.h setup.h
|
|
|
|
build path_coarse.spv: glsl path_coarse.comp | annotated.h pathseg.h tile.h setup.h
|
|
|
|
build backdrop.spv: glsl backdrop.comp | annotated.h tile.h setup.h
|
|
|
|
build coarse.spv: glsl coarse.comp | annotated.h bins.h ptcl.h setup.h
|
|
|
|
build kernel4.spv: glsl kernel4.comp | ptcl.h setup.h
|
|
|
|
build kernel4_idx.spv: glsl kernel4.comp | ptcl.h setup.h
|
|
flags = -DENABLE_IMAGE_INDICES
|