rhi: vulkan: Log instance extensions

Change-Id: I7968268c1c536a0ebcdea00f2f6ab7f5b008be18
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2022-08-09 14:34:56 +02:00
parent 74b185c1c4
commit 525a3f08e8

View File

@ -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
f = inst->functions();
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();
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] {