Added KRDevice::setDebugLabel and helper function overloads. Now labeling more Vulkan objects.

This commit is contained in:
2022-07-21 00:19:51 -07:00
parent d1553fc1bf
commit cfd8e35f29
3 changed files with 91 additions and 15 deletions

View File

@@ -48,6 +48,15 @@ public:
void destroy();
bool initialize(const std::vector<const char*>& deviceExtensions);
#if KRENGINE_DEBUG_GPU_LABELS
void setDebugLabel(uint64_t objectHandle, VkObjectType objectType, const char* debugLabel);
void setDebugLabel(const VkImage& image, const char* debugLabel);
void setDebugLabel(const VkBuffer& buffer, const char* debugLabel);
void setDebugLabel(const VkQueue& queue, const char* debugLabel);
void setDebugLabel(const VkCommandBuffer& commandBuffer, const char* debugLabel);
void setDebugLabel(const VkDevice& device, const char* debugLabel);
#endif // KRENGINE_DEBUG_GPU_LABELS
VmaAllocator getAllocator();
bool createBuffer(VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer* buffer, VmaAllocation* allocation
#if KRENGINE_DEBUG_GPU_LABELS