Added DebugUtils::SetTexture()

This commit is contained in:
hyzboy 2025-01-25 01:39:32 +08:00
parent 487d3c4978
commit ab36f67412

View File

@ -3,6 +3,7 @@
#include<hgl/graph/VK.h>
#include<hgl/color/Color4f.h>
#include<hgl/graph/VKTexture.h>
VK_NAMESPACE_BEGIN
struct DebugUtilsFunction
@ -93,6 +94,13 @@ public:
#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);}
void QueueInsert (VkQueue q,const char *,const Color4f &color=Color4f(1,1,1,1));