mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
Small cleanup
Fix winit and android targets.
This commit is contained in:
parent
05e81acebc
commit
c08e6c300d
|
@ -4,7 +4,7 @@
|
||||||
//!
|
//!
|
||||||
//! Requires the [cargo-apk] tool.
|
//! Requires the [cargo-apk] tool.
|
||||||
//! [cargo-apk]: https://crates.io/crates/cargo-apk
|
//! [cargo-apk]: https://crates.io/crates/cargo-apk
|
||||||
/*
|
|
||||||
use raw_window_handle::android::AndroidHandle;
|
use raw_window_handle::android::AndroidHandle;
|
||||||
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
|
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
|
||||||
|
|
||||||
|
@ -107,12 +107,9 @@ impl GfxState {
|
||||||
|
|
||||||
let mut ctx = PietGpuRenderContext::new();
|
let mut ctx = PietGpuRenderContext::new();
|
||||||
render_scene(&mut ctx);
|
render_scene(&mut ctx);
|
||||||
let n_paths = ctx.path_count();
|
|
||||||
let n_pathseg = ctx.pathseg_count();
|
|
||||||
let n_trans = ctx.pathseg_count();
|
|
||||||
let scene = ctx.get_scene_buf();
|
|
||||||
|
|
||||||
let renderer = Renderer::new(&session, scene, n_paths, n_pathseg, n_trans)?;
|
let mut renderer = Renderer::new(&session)?;
|
||||||
|
renderer.upload_render_ctx(&mut ctx)?;
|
||||||
|
|
||||||
let submitted: Option<SubmittedCmdBuf> = None;
|
let submitted: Option<SubmittedCmdBuf> = None;
|
||||||
let current_frame = 0;
|
let current_frame = 0;
|
||||||
|
@ -175,5 +172,3 @@ impl GfxState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
fn main() {}
|
|
||||||
|
|
|
@ -37,12 +37,9 @@ fn main() -> Result<(), Error> {
|
||||||
|
|
||||||
let mut ctx = PietGpuRenderContext::new();
|
let mut ctx = PietGpuRenderContext::new();
|
||||||
render_scene(&mut ctx);
|
render_scene(&mut ctx);
|
||||||
let n_paths = ctx.path_count();
|
|
||||||
let n_pathseg = ctx.pathseg_count();
|
|
||||||
let n_trans = ctx.trans_count();
|
|
||||||
let scene = ctx.get_scene_buf();
|
|
||||||
|
|
||||||
let renderer = Renderer::new(&session, scene, n_paths, n_pathseg, n_trans)?;
|
let mut renderer = Renderer::new(&session)?;
|
||||||
|
renderer.upload_render_ctx(&mut ctx)?;
|
||||||
|
|
||||||
let mut submitted: Option<SubmittedCmdBuf> = None;
|
let mut submitted: Option<SubmittedCmdBuf> = None;
|
||||||
let mut last_frame_idx = 0;
|
let mut last_frame_idx = 0;
|
||||||
|
|
Loading…
Reference in a new issue