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

Read buffer into user-provided Vec #8

Closed
AdrianEddy opened this issue Dec 16, 2021 · 3 comments
Closed

Read buffer into user-provided Vec #8

AdrianEddy opened this issue Dec 16, 2021 · 3 comments

Comments

@AdrianEddy
Copy link

AdrianEddy commented Dec 16, 2021

Is there a way to read data from GPU buffer into user-provided buffer? Looks like currently read() function returns Vec, thus allocating new memory every time. Same for Image buffers

@UpsettingBoy
Copy link
Owner

Not right now. I didn't consider that previously, but it's a good point. I'll look into that 😅

@UpsettingBoy
Copy link
Owner

Thanks to some API changes, this is solved with #9.

@AdrianEddy
Copy link
Author

nice! thank you 😀

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