mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Wgpu resources are no longer wrapped in Arc (since they are now Clone) (#5612)
Co-authored-by: Nicolas <bircni@icloud.com>
This commit is contained in:
@@ -402,6 +402,7 @@ impl<'a, State> Harness<'a, State> {
|
||||
///
|
||||
/// # Errors
|
||||
/// Returns an error if the rendering fails.
|
||||
#[cfg(any(feature = "wgpu", feature = "snapshot"))]
|
||||
pub fn render(&mut self) -> Result<image::RgbaImage, String> {
|
||||
self.renderer.render(&self.ctx, &self.output)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user