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

wgpu-hal needs a no-op backend for fuzzing and benchmarking #6454

Open
jimblandy opened this issue Oct 23, 2024 · 2 comments
Open

wgpu-hal needs a no-op backend for fuzzing and benchmarking #6454

jimblandy opened this issue Oct 23, 2024 · 2 comments

Comments

@jimblandy
Copy link
Member

It would be nice if there were a wgpu-hal backend that basically does nothing and returns Ok for every request. Even though buffer contents would never be right, and presentation would not happen, this would be useful for fuzzing and benchmarking wgpu-core.

@jimblandy jimblandy changed the title wgpu-hal needs a no-op backend wgpu-hal needs a no-op backend for fuzzing and benchmarking Nov 6, 2024
@jimblandy
Copy link
Member Author

The insight here is that the only time you can actually tell whether the GPU did anything at all is when you look at buffer contents. Many many tests don't even bother to do this. And it would be incredibly useful to have the option of cutting the driver and the GPU out of the picture when benchmarking and fuzzing.

@jimblandy
Copy link
Member Author

Much of the work we'll be doing is actually entirely platform-independent, so this would be a portable and fast way to validate that work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant