MCPcopy Create free account
hub / github.com/PerroEngine/Perro / eval_ops

Function eval_ops

perro_source/core/perro_particle_math/src/lib.rs:100–126  ·  view source on GitHub ↗
(
    ops: &[Op],
    t: f32,
    life: f32,
    params: &[f32],
    stack: &mut Vec<f32>,
)

Source from the content-addressed store, hash-verified

98 emit_wgsl_expr_ops(&self.ops)
99 }
100}
101
102pub fn eval_ops(
103 ops: &[Op],
104 t: f32,
105 life: f32,
106 params: &[f32],
107 stack: &mut Vec<f32>,
108) -> Option<f32> {
109 let input = ParticleEvalInput {
110 t,
111 life,
112 lifetime: life,
113 spawn_time: 0.0,
114 emitter_time: 0.0,
115 speed: 0.0,
116 particle_id: 0.0,
117 dir: [0.0, 0.0, 0.0],
118 vel: [0.0, 0.0, 0.0],
119 rand: [0.0, 0.0, 0.0],
120 seed: 0.0,
121 ring_u: 0.0,
122 index01: 0.0,
123 emitter_pos: [0.0, 0.0, 0.0],
124 prev_pos: [0.0, 0.0, 0.0],
125 params,
126 };
127 eval_ops_particle(ops, &input, stack)
128}
129

Callers 1

evalMethod · 0.85

Calls 1

eval_ops_particleFunction · 0.85

Tested by

no test coverage detected