Error when running application in WebGPU #6963
-
Hi Community, I'm encountering an issue while trying to create a project for WebGPU. For WebGL, the example works perfectly, but when switching to WebGPU, I get the following error:
Has anyone else faced this problem or knows how to resolve it? Any help would be greatly appreciated. I have attached the project archive Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.