[PR #1780] [MERGED] mac: Choose whether system Vulkan is needed at runtime. #2299

Closed
opened 2026-02-27 21:15:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1780
Author: @squidbus
Created: 12/14/2024
Status: Merged
Merged: 12/17/2024
Merged by: @georgemoralis

Base: mainHead: macos-vkloader


📝 Commits (1)

  • b2f6d57 mac: Choose whether system Vulkan is needed at runtime.

📊 Changes

6 files changed (+95 additions, -52 deletions)

View changed files

📝 CMakeLists.txt (+9 -4)
📝 REUSE.toml (+1 -0)
📝 externals/MoltenVK/CMakeLists.txt (+14 -2)
externals/MoltenVK/MoltenVK_icd.json (+8 -0)
📝 src/video_core/renderer_vulkan/vk_common.h (+0 -4)
📝 src/video_core/renderer_vulkan/vk_platform.cpp (+63 -42)

📄 Description

Switches to using the system Vulkan loader when available, instead of deciding with a build flag, and alters how the included MoltenVK is bundled so that the system Vulkan loader will load it.

Should make it easy for any user to install the Vulkan SDK and enable debug layers without having to build from source, as layers cannot be loaded when using libMoltenVK.dylib directly.

Additionally, made some modifications to layer loading so that missing layers will error log instead of crashing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1780 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 12/14/2024 **Status:** ✅ Merged **Merged:** 12/17/2024 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `macos-vkloader` --- ### 📝 Commits (1) - [`b2f6d57`](https://github.com/shadps4-emu/shadPS4/commit/b2f6d5740e87fce2dbdd23740a2f325a0c997e54) mac: Choose whether system Vulkan is needed at runtime. ### 📊 Changes **6 files changed** (+95 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+9 -4) 📝 `REUSE.toml` (+1 -0) 📝 `externals/MoltenVK/CMakeLists.txt` (+14 -2) ➕ `externals/MoltenVK/MoltenVK_icd.json` (+8 -0) 📝 `src/video_core/renderer_vulkan/vk_common.h` (+0 -4) 📝 `src/video_core/renderer_vulkan/vk_platform.cpp` (+63 -42) </details> ### 📄 Description Switches to using the system Vulkan loader when available, instead of deciding with a build flag, and alters how the included MoltenVK is bundled so that the system Vulkan loader will load it. Should make it easy for any user to install the Vulkan SDK and enable debug layers without having to build from source, as layers cannot be loaded when using `libMoltenVK.dylib` directly. Additionally, made some modifications to layer loading so that missing layers will error log instead of crashing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:57 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2299
No description provided.