mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 14:28:11 +08:00
Improve type compatibility and clean up new node macro usages (#2002)
* Improve type compatibility * More
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
use crate::vector::VectorData;
|
||||
use glam::{DAffine2, DVec2};
|
||||
|
||||
#[node_macro::node(category("Debug"))]
|
||||
fn log_to_console<T: core::fmt::Debug>(
|
||||
_: (),
|
||||
#[default("Not connected to value yet")]
|
||||
#[implementations(String, bool, f64, f64, u32, u64, glam::DVec2, crate::vector::VectorData, glam::DAffine2)]
|
||||
#[implementations(String, bool, f64, f64, u32, u64, DVec2, VectorData, DAffine2)]
|
||||
value: T,
|
||||
) -> T {
|
||||
#[cfg(not(target_arch = "spirv"))]
|
||||
|
||||
Reference in New Issue
Block a user