From a1573aa833cd5255c07e5f271e682deadb3ed786 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 30 Nov 2020 15:40:56 +0800 Subject: [PATCH] add Flush functions at VKBuffer --- inc/hgl/graph/VKBuffer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/hgl/graph/VKBuffer.h b/inc/hgl/graph/VKBuffer.h index daa0f990..3c197901 100644 --- a/inc/hgl/graph/VKBuffer.h +++ b/inc/hgl/graph/VKBuffer.h @@ -45,6 +45,8 @@ public: void * Map () {return buf.memory->Map();} virtual void * Map (VkDeviceSize start,VkDeviceSize size) {return buf.memory->Map(start,size);} void Unmap () {return buf.memory->Unmap();} + void Flush (VkDeviceSize start,VkDeviceSize size) {return buf.memory->Flush(start,size);} + void Flush (VkDeviceSize size) {return buf.memory->Flush(size);} bool Write (const void *ptr,uint32_t start,uint32_t size) {return buf.memory->Write(ptr,start,size);} bool Write (const void *ptr,uint32_t size) {return buf.memory->Write(ptr,0,size);}