![]() Fixes https://github.com/bevyengine/bevy/issues/1207 # Objective Right now, it's impossible to capture a screenshot of the entire window without forking bevy. This is because - The swapchain texture never has the COPY_SRC usage - It can't be accessed without taking ownership of it - Taking ownership of it breaks *a lot* of stuff ## Solution - Introduce a dedicated api for taking a screenshot of a given bevy window, and guarantee this screenshot will always match up with what gets put on the screen. --- ## Changelog - Added the `ScreenshotManager` resource with two functions, `take_screenshot` and `save_screenshot_to_disk` |
||
---|---|---|
.. | ||
basis.rs | ||
dds.rs | ||
exr_texture_loader.rs | ||
fallback_image.rs | ||
hdr_texture_loader.rs | ||
image_texture_conversion.rs | ||
image_texture_loader.rs | ||
image.rs | ||
ktx2.rs | ||
mod.rs | ||
texture_cache.rs |