Split local state from Engine in iced_wgpu
This commit is contained in:
parent
4b075b9731
commit
576dd22733
22 changed files with 768 additions and 641 deletions
|
|
@ -106,7 +106,12 @@ impl Default for Style {
|
|||
/// a window nor a compositor.
|
||||
pub trait Headless {
|
||||
/// Creates a new [`Headless`] renderer;
|
||||
fn new(default_font: Font, default_text_size: Pixels) -> Self;
|
||||
fn new(
|
||||
default_font: Font,
|
||||
default_text_size: Pixels,
|
||||
) -> impl Future<Output = Option<Self>>
|
||||
where
|
||||
Self: Sized;
|
||||
|
||||
/// Draws offscreen into a screenshot, returning a collection of
|
||||
/// bytes representing the rendered pixels in RGBA order.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue