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

Any way to check that a buffer is unmapped? #400

Open
lisyarus opened this issue Jul 12, 2024 · 2 comments
Open

Any way to check that a buffer is unmapped? #400

lisyarus opened this issue Jul 12, 2024 · 2 comments

Comments

@lisyarus
Copy link

As I understand it, wgpuBufferGetMapState is currently not implemented. Is there any reason this functionality is unavailable, and is there any way to check if a buffer was successfully unmapped and can be used for further operations?

@almarklein
Copy link
Collaborator

In wgpu-py we don't use it, because in a wrapper its easy to keep track of the map-state yourself. I think its safe to assume that if wgpuBufferUnmap() successfully returns, all should be well.

So (speaking for myself) it's mostly not implemented due to a lack of need and time :) PR's to implement it are welcome though!

@lisyarus
Copy link
Author

@almarklein Thanks for your answer! I assumed that unmapping is some kind of async operation as well, but if I can just unmap synchronously, I guess I'm fine.

I'll try to see if I can submit a PR :)

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

No branches or pull requests

2 participants