webai-community / aquarium

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

Specify fish count in the render loop for D3D12 backend #22

Closed JiangYizhou closed 5 years ago

JiangYizhou commented 5 years ago

This patch implements fish number selection for D3D12 backend. If fish count is changed, the application will destory and reallocate fish buffer. Take care to flush the command lists before destory resource by signal mechanism, otherwise D3D12 driver will report 'OBJECT_DELETED_WHILE_STILL_IN_USE' error.

JiangYizhou commented 5 years ago

@bbernhar @Jiawei-Shao @shaoboyan , This patch implements select fish number for D3D12 backend.

This commit fixes #18