KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

VK_LAYER_LUNARG_api_dump: Show Image handle next to ImageView handle #2568

Closed RCalocaO closed 6 years ago

RCalocaO commented 6 years ago

When showing information for ImageViews (outside of creation, eg vkUpdateDescriptorSets), it would be extremely useful to have its associated Image next to it, would simplify searching dumps of more than 1 million lines, eg: pDescriptorWrites[6]: const VkWriteDescriptorSet = 0000024297701780: sType: VkStructureType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET (35) pNext: const void = NULL dstSet: VkDescriptorSet = 000000000000077D dstBinding: uint32_t = 1 dstArrayElement: uint32_t = 0 descriptorCount: uint32_t = 1 descriptorType: VkDescriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER (1) pImageInfo: const VkDescriptorImageInfo = 0000024296196480 pImageInfo[0]: const VkDescriptorImageInfo = 0000024296196480: sampler: VkSampler = 000000000000000D imageView: VkImageView = 0000000000000700 (VkImage = 000000000006FF) imageLayout: VkImageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL (5)

tobine commented 6 years ago

Great idea, thanks @RCalocaO ! I've ported this issue to VulkanTools repo where api_dump layer now lives.