mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-23 06:51:40 +00:00
vk_instance: Enable additional debug tagging if crash diagnostics is enabled. (#2066)
This commit is contained in:
parent
8f33dfe4f1
commit
c0f57df4e6
|
@ -92,13 +92,15 @@ std::string GetReadableVersion(u32 version) {
|
||||||
Instance::Instance(bool enable_validation, bool enable_crash_diagnostic)
|
Instance::Instance(bool enable_validation, bool enable_crash_diagnostic)
|
||||||
: instance{CreateInstance(Frontend::WindowSystemType::Headless, enable_validation,
|
: instance{CreateInstance(Frontend::WindowSystemType::Headless, enable_validation,
|
||||||
enable_crash_diagnostic)},
|
enable_crash_diagnostic)},
|
||||||
physical_devices{EnumeratePhysicalDevices(instance)} {}
|
physical_devices{EnumeratePhysicalDevices(instance)},
|
||||||
|
crash_diagnostic{enable_crash_diagnostic} {}
|
||||||
|
|
||||||
Instance::Instance(Frontend::WindowSDL& window, s32 physical_device_index,
|
Instance::Instance(Frontend::WindowSDL& window, s32 physical_device_index,
|
||||||
bool enable_validation /*= false*/, bool enable_crash_diagnostic /*= false*/)
|
bool enable_validation /*= false*/, bool enable_crash_diagnostic /*= false*/)
|
||||||
: instance{CreateInstance(window.GetWindowInfo().type, enable_validation,
|
: instance{CreateInstance(window.GetWindowInfo().type, enable_validation,
|
||||||
enable_crash_diagnostic)},
|
enable_crash_diagnostic)},
|
||||||
physical_devices{EnumeratePhysicalDevices(instance)} {
|
physical_devices{EnumeratePhysicalDevices(instance)},
|
||||||
|
crash_diagnostic{enable_crash_diagnostic} {
|
||||||
if (enable_validation) {
|
if (enable_validation) {
|
||||||
debug_callback = CreateDebugCallback(*instance);
|
debug_callback = CreateDebugCallback(*instance);
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ public:
|
||||||
|
|
||||||
/// Returns true when a known debugging tool is attached.
|
/// Returns true when a known debugging tool is attached.
|
||||||
bool HasDebuggingToolAttached() const {
|
bool HasDebuggingToolAttached() const {
|
||||||
return has_renderdoc || has_nsight_graphics;
|
return crash_diagnostic || has_renderdoc || has_nsight_graphics;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if anisotropic filtering is supported
|
/// Returns true if anisotropic filtering is supported
|
||||||
|
@ -338,6 +338,7 @@ private:
|
||||||
u32 subgroup_size{};
|
u32 subgroup_size{};
|
||||||
bool tooling_info{};
|
bool tooling_info{};
|
||||||
bool debug_utils_supported{};
|
bool debug_utils_supported{};
|
||||||
|
bool crash_diagnostic{};
|
||||||
bool has_nsight_graphics{};
|
bool has_nsight_graphics{};
|
||||||
bool has_renderdoc{};
|
bool has_renderdoc{};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue