How to capture frames? #7188
Unanswered
John-Nagle
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Start/stop capture are just for renderdoc captures (they need better docs). If you want to do something like "take a screenshot" you'll have to copy the texture to a buffer and then map it and read it back on the CPU. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's the right way to capture the frame just rendered, for routine screenshots and such? There's start_capture and stop_capture:
That's all the documentation says. Those work with the RenderDoc graphics debugger, and don't really synchronize with rendering. The usage I've found is start_capture, wait one second, stop_capture, check if you got something.
There are a few relevant crates.
This is a common use case. What's best practice?
Beta Was this translation helpful? Give feedback.
All reactions