Skip to content

Instantly share code, notes, and snippets.

@aras-p
Last active April 26, 2024 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aras-p/5a9ae8f1f7d9998f732aff26dfa62617 to your computer and use it in GitHub Desktop.
Save aras-p/5a9ae8f1f7d9998f732aff26dfa62617 to your computer and use it in GitHub Desktop.
Apple Metal Shader Compiler Cache location

As per gfx-rs/gfx#3716 (comment) :

macOS has a system shader cache at $(getconf DARWIN_USER_CACHE_DIR)/com.apple.metal

On my MacBookPro that is under /var/folders/52/l9z1nqld5yg99tb_s3q6nyhh0000gn/C

  • System shaders: /var/folders/52/l9z1nqld5yg99tb_s3q6nyhh0000gn/C/com.apple.metal
  • Blender shaders: /var/folders/52/l9z1nqld5yg99tb_s3q6nyhh0000gn/C/org.blenderfoundation

Delete all the folders in there to clear the cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment