finished dynamic UBO for RenderList,,,but rendering breakout error.

This commit is contained in:
2021-06-22 21:33:47 +08:00
parent bbab22304d
commit c3e9015d95
16 changed files with 152 additions and 80 deletions

View File

@@ -13,6 +13,8 @@ class VKMemoryAllocator:public AbstractMemoryAllocator
GPUBuffer *gpu_buffer;
VkDeviceSize range; //ubo之类需要一个一次访问范围
protected:
bool AllocMemory() override;
@@ -27,10 +29,12 @@ public:
public:
VKMemoryAllocator(GPUDevice *,const uint32_t flags);
VKMemoryAllocator(GPUDevice *,const uint32_t flags,const VkDeviceSize r);
~VKMemoryAllocator();
void Free() override {/* DON'T RUN ANY OPERATION.*/}
void Flush(const VkDeviceSize);
};//class VKMemoryAllocator:public AbstractMemoryAllocator
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_MEMORY_ALLOCATOR_INCLUDE