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

How would I use wgpuBufferMapAsync without wgpuDevicePoll? #121

Closed
athas opened this issue Jul 25, 2021 · 4 comments
Closed

How would I use wgpuBufferMapAsync without wgpuDevicePoll? #121

athas opened this issue Jul 25, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@athas
Copy link

athas commented Jul 25, 2021

The compute example uses wgpuDevicePoll to block until the memory is mapped. This works, but wgpuDevicePoll is wgpu-specific and in particular does not work with Emscripten. The JS API returns a promise that can be used for blocking here, but how would I do it with wgpu-native? I understand that the webgpu.h header is WIP, so is this just a problem that hasn't been addressed yet?

@athas
Copy link
Author

athas commented Jul 25, 2021

Also, apologies if this is not the right place to ask. I couldn't find any chat room or similar.

@kvark
Copy link
Member

kvark commented Jul 26, 2021

We'll need something like "poll" in https://github.com/webgpu-native/webgpu-headers . Care to file an issue there? Thank you!

@kvark kvark added the help wanted Extra attention is needed label Jul 26, 2021
@athas
Copy link
Author

athas commented Jul 26, 2021

I have done so: webgpu-native/webgpu-headers#91

@cwfitzgerald
Copy link
Member

This is locally implemented as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants