mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-02 11:44:07 +00:00
21 lines
560 B
Makefile
21 lines
560 B
Makefile
.PHONY: all clean
|
|
.SECONDARY: boids.metal quad.metal
|
|
|
|
all:
|
|
|
|
clean:
|
|
rm *.metal *.air *.metallib *.vert *.frag *.comp
|
|
|
|
%.metal: test-data/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs)
|
|
cargo run --example convert --features wgsl-in,msl-out -- $< $@
|
|
|
|
%.air: %.metal
|
|
xcrun -sdk macosx metal -c $< -mmacosx-version-min=10.11
|
|
|
|
%.metallib: %.air
|
|
xcrun -sdk macosx metallib $< -o $@
|
|
|
|
%.vert %.frag %.comp: test-data/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs)
|
|
cargo run --example convert --features wgsl-in,glsl-out -- $< $@
|
|
glslangValidator $@
|