mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 13:58:12 +08:00
Take rasterize's data input on the materialized leveled form
This commit is contained in:
@@ -15,7 +15,7 @@ use core_types::runtime::SourceFuture;
|
|||||||
#[cfg(target_family = "wasm")]
|
#[cfg(target_family = "wasm")]
|
||||||
use core_types::transform::Footprint;
|
use core_types::transform::Footprint;
|
||||||
#[cfg(target_family = "wasm")]
|
#[cfg(target_family = "wasm")]
|
||||||
use core_types::{ATTR_TRANSFORM, WasmNotSend};
|
use core_types::ATTR_TRANSFORM;
|
||||||
use core_types::{Color, Ctx};
|
use core_types::{Color, Ctx};
|
||||||
pub use graph_craft::application_io::resource::{Resource, ResourceHash};
|
pub use graph_craft::application_io::resource::{Resource, ResourceHash};
|
||||||
pub use graph_craft::application_io::*;
|
pub use graph_craft::application_io::*;
|
||||||
@@ -204,17 +204,17 @@ fn create_canvas(_: impl Ctx) -> CanvasHandle {
|
|||||||
/// Renders a view of the input graphic within an area defined by the *Footprint*.
|
/// Renders a view of the input graphic within an area defined by the *Footprint*.
|
||||||
#[cfg(target_family = "wasm")]
|
#[cfg(target_family = "wasm")]
|
||||||
#[node_macro::node(category(""))]
|
#[node_macro::node(category(""))]
|
||||||
async fn rasterize<T: WasmNotSend + Clone>(
|
async fn rasterize<T: Clone + Send + Sync + dyn_any::StaticTypeSized>(
|
||||||
_: impl Ctx,
|
_: impl Ctx,
|
||||||
_: (),
|
_: (),
|
||||||
#[implementations(
|
#[implementations(
|
||||||
List<Vector>,
|
Vector,
|
||||||
List<Raster<CPU>>,
|
Raster<CPU>,
|
||||||
List<Graphic>,
|
Graphic,
|
||||||
List<Color>,
|
Color,
|
||||||
List<GradientStops>,
|
GradientStops,
|
||||||
)]
|
)]
|
||||||
mut data: List<T>,
|
mut data: IList<T>,
|
||||||
footprint: Footprint,
|
footprint: Footprint,
|
||||||
mut canvas: CanvasHandle,
|
mut canvas: CanvasHandle,
|
||||||
) -> (Raster<CPU>, Attr<Transform>, OwnedAttr<EditorMergedLayers>)
|
) -> (Raster<CPU>, Attr<Transform>, OwnedAttr<EditorMergedLayers>)
|
||||||
|
|||||||
Reference in New Issue
Block a user