From 20070b6b3535e385f9a901eff7015f7afe5358a1 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 15 Jun 2021 15:02:36 +0800 Subject: [PATCH] add GetBuffer function at VKMemoryAllocator. --- inc/hgl/graph/VKMemoryAllocator.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/hgl/graph/VKMemoryAllocator.h b/inc/hgl/graph/VKMemoryAllocator.h index d8a7f953..1bd60d7a 100644 --- a/inc/hgl/graph/VKMemoryAllocator.h +++ b/inc/hgl/graph/VKMemoryAllocator.h @@ -23,6 +23,8 @@ public: const uint32_t GetBufferUsageFlagBits ()const{return buffer_usage_flag_bits;} + GPUBuffer * GetBuffer (){return gpu_buffer;} + public: VKMemoryAllocator(GPUDevice *,const uint32_t flags);