Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::render::PassStats Struct Reference

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).

Detailed Description

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.

Member Function Documentation

◆ cpu_time_ms()

float pulp::render::PassStats::cpu_time_ms ( ) const
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.

Member Data Documentation

◆ draw_calls

int pulp::render::PassStats::draw_calls = 0

◆ time_ms

float pulp::render::PassStats::time_ms = 0

CPU wall-time around draw submission (ms).

◆ type

RenderPassType pulp::render::PassStats::type

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/render/include/pulp/render/render_pass.hpp