mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Add compute pipeline test
This commit is contained in:
committed by
Keavon Chambers
parent
e03da35a83
commit
21c62ace64
@@ -6,13 +6,7 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
gpu = [
|
||||
"interpreted-executor/gpu",
|
||||
"graphene-std/gpu",
|
||||
"graphene-core/gpu",
|
||||
"wgpu-executor",
|
||||
"gpu-executor",
|
||||
]
|
||||
gpu = ["interpreted-executor/gpu", "graphene-std/gpu", "graphene-core/gpu", "wgpu-executor", "gpu-executor"]
|
||||
default = ["wgpu"]
|
||||
wgpu = ["wgpu-executor", "gpu"]
|
||||
wayland = ["graphene-std/wayland"]
|
||||
@@ -44,6 +38,7 @@ wasm-bindgen = { version = "0.2.86", optional = true }
|
||||
futures = "0.3.28"
|
||||
fern = { version = "0.6.2", features = ["colored"] }
|
||||
chrono = "0.4.26"
|
||||
tokio = { version = "1.28.2", features = ["macros", "rt"] }
|
||||
|
||||
[dependencies.document-legacy]
|
||||
path = "../../document-legacy"
|
||||
|
||||
@@ -25,7 +25,8 @@ impl NodeGraphUpdateSender for UpdateLogger {
|
||||
}
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
init_logging();
|
||||
|
||||
let document_path = std::env::args().nth(1).expect("No document path provided");
|
||||
@@ -41,9 +42,9 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
node_graph_message_sender: &UpdateLogger {},
|
||||
imaginate_preferences: &ImaginatePreferences::default(),
|
||||
};
|
||||
for i in 0..10 {
|
||||
for i in 0..100 {
|
||||
//println!("executing");
|
||||
let result = block_on((&executor).execute(editor_api.clone()))?;
|
||||
let result = (&executor).execute(editor_api.clone()).await?;
|
||||
//println!("result: {:?}", result);
|
||||
std::thread::sleep(std::time::Duration::from_secs(1));
|
||||
}
|
||||
|
||||
1
node-graph/graphene-cli/test_files/invert_gpu.graphite
Normal file
1
node-graph/graphene-cli/test_files/invert_gpu.graphite
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user