| 50 | }; |
| 51 | |
| 52 | static void InitializeMetalCachePath() { |
| 53 | if (env::getEnvVar("DXMT_USE_DEFAULT_METAL_CACHE") == "1") |
| 54 | return; |
| 55 | // This is the framework cache (mainly for PSOs), not managed by DXMT |
| 56 | auto metal_cache_path = str::format("dxmt/", env::getExeName(), "/com.apple.metal"); |
| 57 | if (!WMTSetMetalShaderCachePath(metal_cache_path.c_str())) { |
| 58 | Logger::info("Failed to set Metal cache path, fallback to system default"); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | extern "C" BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, |
| 63 | LPVOID reserved) { |
no test coverage detected