Advances the state by `deltaTime`. Returns whether the pulse is in the HIGH state. */
| 430 | |
| 431 | /** Advances the state by `deltaTime`. Returns whether the pulse is in the HIGH state. */ |
| 432 | simd::float_4 process(float deltaTime) { |
| 433 | |
| 434 | simd::float_4 mask = (remaining > 0.f); |
| 435 | |
| 436 | remaining -= ifelse(mask, deltaTime, 0.f); |
| 437 | return ifelse(mask, simd::float_4::mask(), 0.f); |
| 438 | } |
| 439 | |
| 440 | /** Begins a trigger with the given `duration`. */ |
| 441 | void trigger(simd::float_4 mask, float duration = 1e-3f) { |
nothing calls this directly
no outgoing calls
no test coverage detected