Added GPU debug labels for textures.

Fixed bug causing Vulkan images to be constantly re-created.
This commit is contained in:
2022-07-20 22:09:52 -07:00
parent 7e8b5cb830
commit 0cc6c0d40b
5 changed files with 32 additions and 6 deletions

View File

@@ -55,7 +55,11 @@ public:
#endif
);
bool createImage(Vector2i dimensions, VkImageCreateFlags imageCreateFlags, VkMemoryPropertyFlags properties, VkImage* image, VmaAllocation* allocation);
bool createImage(Vector2i dimensions, VkImageCreateFlags imageCreateFlags, VkMemoryPropertyFlags properties, VkImage* image, VmaAllocation* allocation
#if KRENGINE_DEBUG_GPU_LABELS
, const char* debug_label
#endif
);
KrResult selectSurfaceFormat(VkSurfaceKHR& surface, VkSurfaceFormatKHR& surfaceFormat);
KrResult selectDepthFormat(VkFormat& selectedDepthFormat);