Add screenshot helpers to iced_test

This commit is contained in:
Héctor Ramón Jiménez 2025-11-12 00:53:10 +01:00
parent ea614387f4
commit 085c8fae8d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
10 changed files with 183 additions and 78 deletions

View file

@ -410,6 +410,7 @@ fn load_image<'a>(
#[cfg(all(feature = "image", not(target_arch = "wasm32")))]
mod worker {
use crate::core::Bytes;
use crate::core::image;
use crate::graphics::Shell;
use crate::image::atlas::{self, Atlas};
@ -505,7 +506,7 @@ mod worker {
Load(image::Handle),
Upload {
handle: image::Handle,
rgba: image::Bytes,
rgba: Bytes,
width: u32,
height: u32,
},
@ -580,7 +581,7 @@ mod worker {
handle: image::Handle,
width: u32,
height: u32,
rgba: image::Bytes,
rgba: Bytes,
callback: fn(&Shell),
) {
let mut encoder = self.device.create_command_encoder(