[drape] Remove Vulkan warnings

Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
This commit is contained in:
Gonzalo Pesquero 2025-02-17 23:58:17 +01:00 committed by Viktor Havaka
parent d21800ec25
commit 1753a8bc87
2 changed files with 6 additions and 5 deletions

View file

@ -218,10 +218,10 @@ VulkanContextFactory::VulkanContextFactory(uint32_t appVersionCode, int sdkVersi
if (!availableFeatures.wideLines)
LOG(LWARNING, ("Widelines Vulkan feature is not supported."));
VkPhysicalDeviceFeatures enabledFeatures;
enabledFeatures.wideLines = availableFeatures.wideLines;
VkDeviceCreateInfo deviceCreateInfo = {};
VkPhysicalDeviceFeatures enabledFeatures = {
.wideLines = availableFeatures.wideLines,
};
deviceCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
deviceCreateInfo.pNext = nullptr;
deviceCreateInfo.queueCreateInfoCount = 1;

View file

@ -31,12 +31,13 @@ void DebugName::Set(VkObjectType type, uint64_t handle, char const * name)
{
if (vkSetDebugUtilsObjectNameEXT == nullptr)
return;
VkDebugUtilsObjectNameInfoEXT const info = {
.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT,
.pNext = nullptr,
.objectType = type,
.objectHandle = handle,
.pObjectName = name,
.pObjectName = name
};
CHECK_VK_CALL(vkSetDebugUtilsObjectNameEXT(m_device, &info));
}