File tree 4 files changed +7
-89
lines changed
4 files changed +7
-89
lines changed Original file line number Diff line number Diff line change 39
39
endif
40
40
41
41
42
- .PHONY : all check quad quad-wasm test doc reftests benches
42
+ .PHONY : all check quad quad-wasm test doc reftests benches metal-shaders
43
43
44
44
all : check test
45
45
78
78
quad-wasm :
79
79
cd examples && cargo +nightly build --target wasm32-unknown-unknown --features gl --bin quad && wasm-bindgen ../target/wasm32-unknown-unknown/debug/quad.wasm --out-dir ../examples/generated-wasm --web
80
80
81
+ metal-shaders :
82
+ cd ./src/backend/metal/shaders && \
83
+ xcrun -sdk macosx metal -c * .metal -mmacosx-version-min=10.11 && \
84
+ xcrun -sdk macosx metallib * .air -o gfx_shaders.metallib && \
85
+ rm * .air
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ pub struct ServicePipes {
451
451
452
452
impl ServicePipes {
453
453
pub fn new ( device : & metal:: DeviceRef ) -> Self {
454
- let data = include_bytes ! ( concat! ( env! ( "OUT_DIR" ) , "/ gfx_shaders.metallib") ) ;
454
+ let data = include_bytes ! ( "./../shaders/ gfx_shaders.metallib") ;
455
455
let library = device. new_library_with_data ( data) . unwrap ( ) ;
456
456
457
457
let copy_buffer = Self :: create_copy_buffer ( & library, device) ;
You can’t perform that action at this time.
0 commit comments