Skip to content

Error when running application in WebGPU #6963

Answered by cwfitzgerald
dsiea asked this question in Q&A
Discussion options

You must be logged in to vote

You can't use block_on on the web. The only reason it works on gl is that initialization of wgpu-core isn't actually asynchronous, so when running on non-webgpu the block_on doesn't actually need to wait.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by dsiea
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