mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-01 03:03:26 +00:00
5d9489871d
* Initial glsl es 300 support * Set float default precision * Generate interface blocks and check storage class in es * Added more checks on es and fixed uniform blocks with same name type * Added image checks * Added the test to the makefile * applied comments
29 lines
812 B
Makefile
29 lines
812 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 -- $< $@
|
|
|
|
%.air: %.metal
|
|
xcrun -sdk macosx metal -c $< -mmacosx-version-min=10.11
|
|
|
|
%.metallib: %.air
|
|
xcrun -sdk macosx metallib $< -o $@
|
|
|
|
%.vert: test-data/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs)
|
|
cargo run --example convert --features glsl-out -- $< $@
|
|
|
|
%.frag: test-data/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs)
|
|
cargo run --example convert --features glsl-out -- $< $@
|
|
|
|
%.comp: test-data/%.wgsl $(wildcard src/*.rs src/**/*.rs examples/*.rs)
|
|
cargo run --example convert --features glsl-out -- $< $@
|
|
|
|
%.glsl_validate: %.vert %.frag %.comp
|
|
glslangValidator $<
|