Improve type compatibility and clean up new node macro usages (#2002)

* Improve type compatibility

* More
This commit is contained in:
Keavon Chambers
2024-09-22 01:44:18 -07:00
committed by GitHub
parent 33df58eda9
commit 3ddc052538
17 changed files with 842 additions and 243 deletions
+4 -1
View File
@@ -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"))]