-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add a Dummy backend #2291
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
Comments
Are you planning to look into this feature? I'm interested in this and would like to contribute, but I don't know wgpu architecture. But I could try if you give me some hints :) |
I'm not planning to get to this right now, but will happily accept contribution. Just look at other |
@kvark how this feature should look? Features can't remove dependencies. So should we have a |
We talked about this on Matrix and found no good solution. Also, this problem applies to "webgpu-headers" backend (which we need to add), not just to the dummy one. |
Thanks for the info! Will think about a solution on Bevy side. |
…#2291) * Fix invalid spirv generation in int dotprod constants cannot be declared inside of a function block, so instead use `write_constant_null` to produce a correctly-declared constant 0. * autogenerated test snapshots
We've already done this, wgpu-hal has a dummy backend. |
Is your feature request related to a problem? Please describe.
Users may sometimes want to compile against wgpu some code that's never executed. In this case, they don't want to have any of the dependencies, just the API.
Describe the solution you'd like
Add a "dummy" backend (behind a feature) to wgpu-rs.
Describe alternatives you've considered
Having backend selection be done with features in wgpu and wgpu-core, so that these users can select no backends.
Additional context
#1221 (comment)
The text was updated successfully, but these errors were encountered: