From 6ca0cd2987456a80d1f217587a2540d003160fea Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 24 Jan 2025 23:44:55 +0800 Subject: [PATCH] Added DebugUtils::SetTexture --- inc/hgl/graph/VKDebugUtils.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/hgl/graph/VKDebugUtils.h b/inc/hgl/graph/VKDebugUtils.h index a3e73a55..7d4f9ce7 100644 --- a/inc/hgl/graph/VKDebugUtils.h +++ b/inc/hgl/graph/VKDebugUtils.h @@ -3,6 +3,7 @@ #include #include +#include VK_NAMESPACE_BEGIN struct DebugUtilsFunction @@ -92,6 +93,13 @@ public: // DU_FUNC(BufferCollectionFuchsia, BUFFER_COLLECTION_FUCHSIA) #undef DU_FUNC + + void SetTexture(Texture *tex,const AnsiString &info) + { + SetImage( tex->GetImage(), info+"_Image" ); + SetImageView( tex->GetVulkanImageView(), info+"_ImageView" ); + SetDeviceMemory(tex->GetDeviceMemory(), info+"_Memory" ); + } void QueueBegin (VkQueue,const char *,const Color4f &color=Color4f(1,1,1,1)); void QueueEnd (VkQueue q){duf.QueueEnd(q);}