Skip to content
Discussion options

You must be logged in to vote

As long as you're not actually running your application in a web page, wgpu supports use from multiple threads. The caveat is that there is currently only one Queue, so work cannot actually be submitted to the GPU truly in parallel; there will be some unnecessary synchronization. The internals of wgpu also currently have more exclusive locking than is ideal, if I understand correctly. None of this prevents you from using wgpu from multiple threads; it just will not be as high-performance as it theoretically could be. And, of course, the GPU itself is still doing its actual work asynchronously.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jcyuan
Comment options

Answer selected by jcyuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants