mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-11 08:47:59 +00:00
Add license information for node_graph crates
This commit is contained in:
parent
0c2dbd411b
commit
78f07439db
10 changed files with 29 additions and 2504 deletions
1114
Cargo.lock
generated
1114
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -4,9 +4,10 @@ version = "0.2.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||||
|
|
||||||
description = "#[derive(DynAny<'a>)]"
|
description = "#[derive(DynAny)]"
|
||||||
documentation = "https://docs.rs/dyn-any-derive"
|
documentation = "https://docs.rs/dyn-any-derive"
|
||||||
repository = "https://github.com/TrueDoctor/dyn-any"
|
repository = "https://github.com/GraphiteEditor/Graphite"
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
@ -15,7 +16,6 @@ proc-macro = true
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro2 = "1"
|
proc-macro2 = "1"
|
||||||
quote = "1"
|
quote = "1"
|
||||||
proc_macro_roids = "0.7"
|
|
||||||
syn = { version = "1", default-features = false, features = ["derive", "parsing", "proc-macro", "printing"] }
|
syn = { version = "1", default-features = false, features = ["derive", "parsing", "proc-macro", "printing"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
name = "borrow_stack"
|
name = "borrow_stack"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "API definitions for Graphene"
|
description = "API definitions for Graphene"
|
||||||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|
1319
node-graph/gstd/Cargo.lock
generated
1319
node-graph/gstd/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -4,12 +4,11 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Graphene standard library"
|
description = "Graphene standard library"
|
||||||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
rust_analyzer = ["ide", "ide_db"]
|
|
||||||
caching = ["storage-map", "lock_api", "parking_lot"]
|
|
||||||
derive = ["graph-proc-macros"]
|
derive = ["graph-proc-macros"]
|
||||||
memoization = ["once_cell"]
|
memoization = ["once_cell"]
|
||||||
default = ["derive", "memoization"]
|
default = ["derive", "memoization"]
|
||||||
|
@ -21,11 +20,6 @@ borrow_stack = {path = "../borrow_stack"}
|
||||||
dyn-any = {path = "../../libraries/dyn-any", features = ["derive"]}
|
dyn-any = {path = "../../libraries/dyn-any", features = ["derive"]}
|
||||||
graph-proc-macros = {path = "../proc-macro", optional = true}
|
graph-proc-macros = {path = "../proc-macro", optional = true}
|
||||||
once_cell = {version= "1.10", optional = true}
|
once_cell = {version= "1.10", optional = true}
|
||||||
ide = { version = "*", package = "ra_ap_ide", optional = true }
|
|
||||||
ide_db = { version = "*", package = "ra_ap_ide_db", optional = true }
|
|
||||||
storage-map = { version = "*", optional = true }
|
|
||||||
lock_api = { version= "*", optional = true }
|
|
||||||
parking_lot = { version = "*", optional = true }
|
|
||||||
#pretty-token-stream = {path = "../../pretty-token-stream"}
|
#pretty-token-stream = {path = "../../pretty-token-stream"}
|
||||||
syn = {version = "1.0", default-features = false, features = ["parsing", "printing"]}
|
syn = {version = "1.0", default-features = false, features = ["parsing", "printing"]}
|
||||||
proc-macro2 = {version = "1.0", default-features = false, features = ["proc-macro"]}
|
proc-macro2 = {version = "1.0", default-features = false, features = ["proc-macro"]}
|
||||||
|
|
22
node-graph/gstd/file.rs
Normal file
22
node-graph/gstd/file.rs
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# [cfg (target_arch = "spirv")]pub mod gpu {
|
||||||
|
# [repr (C )]pub struct PushConsts {
|
||||||
|
n : u32 , node : u32 ,
|
||||||
|
}
|
||||||
|
use super :: * ;
|
||||||
|
use spirv_std :: glam :: UVec3 ;
|
||||||
|
# [allow (unused )]# [spirv (compute (threads (64)))]pub fn "add"(# [spirv (global_invocation_id )]global_id : UVec3 , # [spirv (storage_buffer , descriptor_set = 0, binding = 0)]a : & [u32 ], # [spirv (storage_buffer , descriptor_set = 0, binding = 1)]y : & mut [u32 ], # [spirv (push_constant )]push_consts : & PushConsts , ){
|
||||||
|
fn node_graph (input : u32 )-> u32 {
|
||||||
|
let n0 = graphene_core :: value :: ValueNode :: new (input );
|
||||||
|
let n1 = graphene_core :: value :: ValueNode :: new (1u32);
|
||||||
|
let n2 = graphene_core :: ops :: AddNode :: new ((& n0 , & n1 ));
|
||||||
|
n2 . eval ()
|
||||||
|
}
|
||||||
|
let gid = global_id . x as usize ;
|
||||||
|
if global_id . x < push_consts . n {
|
||||||
|
y [gid ]= node_graph (a [gid ]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,8 +1,6 @@
|
||||||
pub mod value;
|
pub mod value;
|
||||||
pub use graphene_core::{generic, ops /*, structural*/};
|
pub use graphene_core::{generic, ops /*, structural*/};
|
||||||
|
|
||||||
#[cfg(feature = "caching")]
|
|
||||||
pub mod cache;
|
|
||||||
#[cfg(feature = "memoization")]
|
#[cfg(feature = "memoization")]
|
||||||
pub mod memo;
|
pub mod memo;
|
||||||
|
|
||||||
|
|
59
node-graph/proc-macro/Cargo.lock
generated
59
node-graph/proc-macro/Cargo.lock
generated
|
@ -1,59 +0,0 @@
|
||||||
# This file is automatically @generated by Cargo.
|
|
||||||
# It is not intended for manual editing.
|
|
||||||
version = 3
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "graph-proc-macros"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"proc_macro_roids",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "proc-macro2"
|
|
||||||
version = "1.0.36"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
|
|
||||||
dependencies = [
|
|
||||||
"unicode-xid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "proc_macro_roids"
|
|
||||||
version = "0.7.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "06675fa2c577f52bcf77fbb511123927547d154faa08097cc012c66ec3c9611a"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "quote"
|
|
||||||
version = "1.0.17"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "syn"
|
|
||||||
version = "1.0.90"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "704df27628939572cd88d33f171cd6f896f4eaca85252c6e0a72d8d8287ee86f"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"unicode-xid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "unicode-xid"
|
|
||||||
version = "0.2.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
||||||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue