diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-08-09 14:34:56 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-08-10 09:09:33 +0200 |
commit | 525a3f08e8c863d713905ba69145335ca49849ae (patch) | |
tree | ab386fc4857f6f24d92e43046106b1c8331f8639 /src/gui/rhi | |
parent | 74b185c1c4609c70e53cb2ae2fa91257054ed8ea (diff) |
rhi: vulkan: Log instance extensions
Change-Id: I7968268c1c536a0ebcdea00f2f6ab7f5b008be18
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi')
-rw-r--r-- | src/gui/rhi/qrhivulkan.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp index 592a5c4fa0..231dac06b3 100644 --- a/src/gui/rhi/qrhivulkan.cpp +++ b/src/gui/rhi/qrhivulkan.cpp @@ -384,11 +384,16 @@ bool QRhiVulkan::create(QRhi::Flags flags) return false; } - globalVulkanInstance = inst; // assume this will not change during the lifetime of the entire application + rhiFlags = flags; + qCDebug(QRHI_LOG_INFO, "Initializing QRhi Vulkan backend %p with flags %d", this, int(rhiFlags)); + globalVulkanInstance = inst; // used for function resolving in vkmemalloc callbacks f = inst->functions(); - - rhiFlags = flags; + if (QRHI_LOG_INFO().isEnabled(QtDebugMsg)) { + qCDebug(QRHI_LOG_INFO, "Enabled instance extensions:"); + for (const char *ext : inst->extensions()) + qCDebug(QRHI_LOG_INFO, " %s", ext); + } QList<VkQueueFamilyProperties> queueFamilyProps; auto queryQueueFamilyProps = [this, &queueFamilyProps] { |