Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
gpu_render_time.hpp File Reference
#include <atomic>
#include <cstdint>
#include <optional>
#include <vector>

Go to the source code of this file.

Classes

class  pulp::render::GpuRenderTimeTracker
 Thread-safe holder for the latest GPU render-time sample. More...
class  pulp::render::GpuFramesInFlight
 Frames whose GPU work has been submitted but has not finished executing. More...

Namespaces

namespace  pulp
namespace  pulp::render

Functions

std::vector< const char * > pulp::render::gpu_surface_disabled_toggles (bool timestamp_query_requested)
 Dawn toggles that must be DISABLED for the requested device features.
std::optional< double > pulp::render::gpu_render_ns_to_ms (std::uint64_t elapsed_ns, bool callback_ok)
 Convert a Graphite GpuStats::elapsedTime sample into a millisecond duration.

Variables

constexpr double pulp::render::kGpuRenderNanosecondsPerMillisecond = 1.0e6
 Whole-recording GPU render time.
constexpr const char * pulp::render::kDawnTimestampQuantizationToggle = "timestamp_quantization"
 Dawn's timestamp_quantization toggle, which defaults to ON in native Dawn (not only in Chrome) and ANDs every resolved timestamp with 0xFFFF0000 — truncating each endpoint to a multiple of 65536 ns.