Statistics for a single render pass. More...
#include <render_pass.hpp>
Public Member Functions | |
| float | cpu_time_ms () const |
| Explicit alias for the CPU number. | |
Public Attributes | |
| RenderPassType | type |
| int | draw_calls = 0 |
| float | time_ms = 0 |
| CPU wall-time around draw submission (ms). | |
Statistics for a single render pass.
time_ms is CPU wall-time measured around the pass's draw-call submission. There is deliberately NO per-pass GPU number: Skia Graphite owns the command encoders, so Pulp cannot inject per-pass timestamp writes from outside — per-pass GPU timing is structurally unavailable under Graphite. The honest GPU clock is frame-level, whole-recording (RenderPassManager::gpu_render_time_ms()), not per pass.
|
inline |
Explicit alias for the CPU number.
cpu_time_ms() makes call sites that want the CPU clock self-documenting without changing the wire field name.
| int pulp::render::PassStats::draw_calls = 0 |
| float pulp::render::PassStats::time_ms = 0 |
CPU wall-time around draw submission (ms).
| RenderPassType pulp::render::PassStats::type |