don't use optional for debugName

This commit is contained in:
niki
2023-12-14 00:42:19 +01:00
parent 364b5c3b7b
commit c8da517759
9 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -201,7 +201,7 @@ bool Texture::loadVolatile()
setGraphicsMemorySize(memsize);
if (debugName.hasValue)
if (!debugName.empty())
{
if (vgfx->getEnabledOptionalInstanceExtensions().debugInfo)
{
@@ -209,7 +209,7 @@ bool Texture::loadVolatile()
nameInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT;
nameInfo.objectType = VK_OBJECT_TYPE_IMAGE;
nameInfo.objectHandle = (uint64_t)textureImage;
nameInfo.pObjectName = debugName.value.c_str();
nameInfo.pObjectName = debugName.c_str();
vkSetDebugUtilsObjectNameEXT(device, &nameInfo);
}
}