MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / chain_of_three

Function chain_of_three

native/shared/src/renderer/graph.rs:335–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333
334 #[test]
335 fn chain_of_three() {
336 // A -> B -> C via data dependencies.
337 let mut graph = Graph::new();
338 graph.push(PassNode::new("C", record("C"))
339 .with_reads(&[PassInput::Transient(1)]));
340 graph.push(PassNode::new("A", record("A"))
341 .with_writes(&[PassOutput::HdrColor]));
342 graph.push(PassNode::new("B", record("B"))
343 .with_reads(&[PassInput::SceneColor])
344 .with_writes(&[PassOutput::Transient(1)]));
345 let mut ctx = Vec::new();
346 graph.execute(&mut ctx).unwrap();
347 assert_eq!(ctx, vec!["A", "B", "C"]);
348 }
349
350 #[test]
351 fn parallel_branches_deterministic_by_declaration_order() {

Callers

nothing calls this directly

Calls 5

recordFunction · 0.85
with_readsMethod · 0.80
with_writesMethod · 0.80
executeMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected