webai-community / aquarium

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

Create backend contexts via helpers #164

Closed hujiajie closed 4 years ago

hujiajie commented 4 years ago

This is a preparation for deprecating the usage of dawn_bindings. To achieve that, we will add one .cpp file for the dawn_vulkan and dawn_d3d12 backend, and one .mm file for the dawn_metal backend. Each backend will be implemented as a subclass of ContextDawn then and instantiated with the factory pattern.

This pull request is opened using a shared GitHub account. Please find the actual author in the git log, and use "Rebase and merge" for correct attribution. The author may have no access to this account, so please do not assume there will be replies from a real human. But you can still leave a comment, and code will be updated here once addressed. - Your Sincere Bot