mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-28 13:28:03 +03:00
vk_platform: Fix incorrect type for MVK debug flag. (#1993)
This commit is contained in:
parent
f41829707d
commit
927dc6d95c
1 changed files with 4 additions and 1 deletions
|
@ -283,6 +283,9 @@ vk::UniqueInstance CreateInstance(Frontend::WindowSystemType window_type, bool e
|
||||||
Common::FS::GetUserPathString(Common::FS::PathType::LogDir);
|
Common::FS::GetUserPathString(Common::FS::PathType::LogDir);
|
||||||
const char* log_path = crash_diagnostic_path.c_str();
|
const char* log_path = crash_diagnostic_path.c_str();
|
||||||
vk::Bool32 enable_force_barriers = vk::True;
|
vk::Bool32 enable_force_barriers = vk::True;
|
||||||
|
#ifdef __APPLE__
|
||||||
|
const vk::Bool32 mvk_debug_mode = enable_crash_diagnostic ? vk::True : vk::False;
|
||||||
|
#endif
|
||||||
|
|
||||||
const std::array layer_setings = {
|
const std::array layer_setings = {
|
||||||
vk::LayerSettingEXT{
|
vk::LayerSettingEXT{
|
||||||
|
@ -356,7 +359,7 @@ vk::UniqueInstance CreateInstance(Frontend::WindowSystemType window_type, bool e
|
||||||
.pSettingName = "MVK_CONFIG_DEBUG",
|
.pSettingName = "MVK_CONFIG_DEBUG",
|
||||||
.type = vk::LayerSettingTypeEXT::eBool32,
|
.type = vk::LayerSettingTypeEXT::eBool32,
|
||||||
.valueCount = 1,
|
.valueCount = 1,
|
||||||
.pValues = &enable_crash_diagnostic,
|
.pValues = &mvk_debug_mode,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue