webai-community / aquarium

BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

Implement buffer manager #62

Closed JiangYizhou closed 4 years ago

JiangYizhou commented 4 years ago

Use a buffer pool to manage all buffers for allocation and deallocation, define a maximum memory for the buffer pool. A buffer pool can allocate many ring buffers until the max limit. Every ring buffer is reponsible for push, reset, destory or flush copy cmds to command buffer. This patch refactor buffer updating method by the buffer pool for Dawn backend and implements both sync and async method to upload fish data.

shaoboyan commented 4 years ago

Marked this and will revisit today for reviewing.

JiangYizhou commented 4 years ago

@Jiawei-Shao @shaoboyan The patch implements buffer pool, buffer mapping sync and async method, PTAL. Thanks.