Automatically name image/buffer allocations

This commit is contained in:
Patrick Nicolas
2025-08-16 14:15:29 +02:00
parent dc04f7edcc
commit c15de9bf27
10 changed files with 75 additions and 62 deletions
+5 -2
View File
@@ -232,9 +232,12 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
for (uint32_t i = 0; i < cn->image_count; i++)
{
auto & image = cn->psc.images[i].image;
image = image_allocation(device, image_info.get(), {.usage = VMA_MEMORY_USAGE_AUTO});
image = image_allocation(
device,
image_info.get(),
{.usage = VMA_MEMORY_USAGE_AUTO},
std::format("comp target image {}", i));
cn->images[i].handle = image;
cn->wivrn_bundle->name(vk::Image(image), "comp target image");
}
for (uint32_t i = 0; i < cn->image_count; i++)
-1
View File
@@ -335,7 +335,6 @@ wivrn_foveation::wivrn_foveation(wivrn_vk_bundle & bundle, const xrt_hmd_parts &
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST,
},
"foveation staging buffer");
bundle.name(vk::Buffer(host_buffer), "foveation staging buffer");
}
bundle.name(command_pool, "foveation command pool");
bundle.name(cmd, "foveation command buffer");