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

Is it possible to read back buffers/textures on the CPU? #166

Open
wyvernbw opened this issue Feb 14, 2024 · 2 comments
Open

Is it possible to read back buffers/textures on the CPU? #166

wyvernbw opened this issue Feb 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@wyvernbw
Copy link

Thank you for work on this library. It's great and has a lot of potential :)

I wish to know if there's a way to read back data sent to the gpu. Is it possible to have the shader draw something to a buffer, read it back on the cpu and for example save it to an image? I've looked at the framebuffer examples but i don't really get how you can get data out of them.

@leod
Copy link
Owner

leod commented Feb 24, 2024

Thanks for your interest in posh!

I think this is a missing feature as of now. We basically need the ability to go from a texture back to an image (i.e., glGetTexImage).

I'll look into implementing this in the next couple of weeks.

@wyvernbw
Copy link
Author

Appreciate it! It would help with my use case of post processing images in batch on the gpu, thanks

@leod leod added the enhancement New feature or request label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants