Skip to main content

run

Function run 

Source
pub fn run(program: &EelProgram, state: &mut VmState, budget: Budget) -> f32
Expand description

Execute program against state, returning the value it leaves on top.

Total on every input: see the module docs. The register file, the arenas and the RNG are state’s and persist across calls, which is what lets a per-frame program set up values a per-vertex program reads.