ps_anyrender_vello/
lib.rs1#![allow(unknown_lints)]
10#![allow(clippy::chunks_exact_to_as_chunks)]
11
12mod backdrop;
13mod blur;
14#[cfg(not(target_arch = "wasm32"))]
15mod image_renderer;
16mod scene;
17mod window_renderer;
18
19pub use backdrop::BackdropPool;
20#[cfg(not(target_arch = "wasm32"))]
21pub use image_renderer::VelloImageRenderer;
22pub use scene::VelloScenePainter;
23pub use wgpu_context::DeviceHandle;
24pub use window_renderer::{VelloRendererOptions, VelloWindowRenderer};
25
26pub use wgpu;
27
28use std::num::NonZeroUsize;
29
30#[cfg(target_os = "macos")]
31const DEFAULT_THREADS: Option<NonZeroUsize> = NonZeroUsize::new(1);
32#[cfg(not(target_os = "macos"))]
33const DEFAULT_THREADS: Option<NonZeroUsize> = None;