Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move WGPU engine to its own module #367

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Move WGPU engine to its own module #367

merged 2 commits into from
Oct 3, 2023

Conversation

raphlinus
Copy link
Contributor

Disentangle the wgpu implementation of Engine from the mechanisms to create recordings, as the former can in theory be used with multiple back-ends.

Also change the name to WgpuEngine to emphasize that it is one choice among possibly many. Most clients are currently using the Renderer abstraction, which is not changed, so the refactor is fairly well hidden.

Disentangle the wgpu implementation of Engine from the mechanisms to create recordings, as the former can in theory be used with multiple back-ends.

Also change the name to WgpuEngine to emphasize that it is one choice among possibly many. Most clients are currently using the `Renderer` abstraction, which is not changed, so the refactor is fairly well hidden.
Copy link
Collaborator

@armansito armansito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good step towards modularization and unblocks other backends/engines.

One thing I would like to see going forward is for the CPU execution logic to be decoupled from the GPU backend-specific engines; I would like to come up with a modular design that allows CPU shaders to interoperate with GPU stages on any backend without having to duplicate concepts like TransientBindMap and TransientBuf for every engine.

@raphlinus raphlinus merged commit 2f5b343 into main Oct 3, 2023
4 checks passed
@raphlinus raphlinus deleted the wgpu_opt2 branch October 3, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants