mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Add script to debug Metal frames
This commit is contained in:
parent
2749001477
commit
7b2f55fa62
1 changed files with 13 additions and 0 deletions
13
script/metal-debug
Executable file
13
script/metal-debug
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
export GPUTOOLS_LOAD_GTMTLCAPTURE=1
|
||||
export DYLD_LIBRARY_PATH="/usr/lib/system/introspection"
|
||||
export METAL_LOAD_INTERPOSER=1
|
||||
export DYLD_INSERT_LIBRARIES="/usr/lib/libMTLCapture.dylib"
|
||||
export DYMTL_TOOLS_DYLIB_PATH="/usr/lib/libMTLCapture.dylib"
|
||||
export METAL_DEVICE_WRAPPER_TYPE=1
|
||||
export GPUProfilerEnabled="YES"
|
||||
export METAL_DEBUG_ERROR_MODE=0
|
||||
export LD_LIBRARY_PATH="/Applications/Xcode.app/Contents/Developer/../SharedFrameworks/"
|
||||
|
||||
cargo run $@
|
Loading…
Reference in a new issue