Module rerun::external::eframe::egui_wgpu::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. All data sent on the Sender will become available on the Receiver in the same order as it was sent, and no send will block the calling thread (this channel has an “infinite buffer”, unlike sync_channel, which will block after its buffer limit is reached). recv will block until a message is available while there is at least one Sender alive (including clones).

Type Aliases§