Shaders: add gcore-shaders and make graster-nodes no-std (#2925)

* gcore-shaders: add crate, move `color` and `blending` from gcore

* gcore-shaders: move `AsU32`

* gcore-shaders: move `ChoiceType`, switch `Cow` for `&str`, adjust node macro

* gcore-shaders: move `registry::types`

* gcore-shaders: move `context::Ctx`

* raster-nodes: make it `no_std` with `std` feature

* gcore-shaders: fix doctest
This commit is contained in:
Firestar99
2025-07-25 17:53:26 +00:00
committed by GitHub
parent 4d5a1a6ff1
commit 4fec24893e
28 changed files with 364 additions and 247 deletions
Generated
+19 -2
View File
@@ -1527,6 +1527,7 @@ version = "0.29.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8babf46d4c1c9d92deac9f7be466f76dfc4482b6452fc5024b5e8daf6ffeb3ee"
dependencies = [
"libm",
"serde",
]
@@ -1695,12 +1696,11 @@ dependencies = [
"ctor",
"dyn-any",
"glam",
"half",
"graphene-core-shaders",
"image",
"kurbo",
"log",
"node-macro",
"num-derive",
"num-traits",
"parley",
"petgraph 0.7.1",
@@ -1716,6 +1716,22 @@ dependencies = [
"wgpu",
]
[[package]]
name = "graphene-core-shaders"
version = "0.1.0"
dependencies = [
"bytemuck",
"dyn-any",
"glam",
"graphene-core",
"half",
"log",
"num-derive",
"num-traits",
"serde",
"specta",
]
[[package]]
name = "graphene-math-nodes"
version = "0.1.0"
@@ -1754,6 +1770,7 @@ dependencies = [
"futures",
"glam",
"graphene-core",
"graphene-core-shaders",
"image",
"ndarray",
"node-macro",