(
ops: &[Op],
t: f32,
life: f32,
params: &[f32],
stack: &mut Vec<f32>,
)
| 98 | emit_wgsl_expr_ops(&self.ops) |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | pub 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 |
no test coverage detected