rerun::external::eframe::egui_wgpu

Module capture

Expand description

Helpers for capturing screenshots of the UI.

Structs§

  • A texture and a buffer for reading the rendered frame back to the cpu. The texture is required since wgpu::TextureUsages::COPY_SRC is not an allowed flag for the surface texture on all platforms. This means that anytime we want to capture the frame, we first render it to this texture, and then we can copy it to both the surface texture (via a render pass) and the buffer (via a texture to buffer copy), from where we can pull it back to the cpu.

Functions§

  • Creates a new asynchronous channel, returning the sender/receiver halves.

Type Aliases§