Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
gpu_host_select.hpp File Reference
#include <pulp/format/editor_idle_pump.hpp>
#include <pulp/format/view_bridge.hpp>
#include <pulp/runtime/log.hpp>
#include <pulp/view/plugin_view_host.hpp>
#include <cstdlib>
#include <cstring>

Go to the source code of this file.

Classes

struct  pulp::format::GpuHostDecision

Namespaces

namespace  pulp
namespace  pulp::format
 What the product grants a device: the quota table indexed by capability tier and live thermal state.

Functions

bool pulp::format::plugin_gpu_disabled_by_env ()
 Runtime opt-out: PULP_DISABLE_PLUGIN_GPU=1 forces the CoreGraphics CPU path.
GpuHostDecision pulp::format::decide_gpu_host (const ViewBridge &bridge)
 Decide whether the GPU host should be requested for bridge, and emit the [plugin-gpu-host] debug-parity adapter log (mirrors [gpu-host]).
view::PluginViewHost::Options pulp::format::editor_host_options (const ViewBridge &bridge, const GpuHostDecision &gpu, view::PluginViewHost::Size size)
 The editor-host options every format adapter builds its PluginViewHost from: the size the adapter negotiated, the GPU decision above, and the plug-in's own background (ViewBridge::editor_background_rgb()).
void pulp::format::warn_if_unexpected_cpu_fallback (const GpuHostDecision &d, const view::PluginViewHost *host)
 Scream-guard (runtime): after the host's surface state is DECIDED, verify the GPU path actually took.
view::PluginViewHost::GpuSurfaceSubscription pulp::format::bind_gpu_surface (view::PluginViewHost &host, view::ScriptedEditorSession *session, const GpuHostDecision &decision, const char *format_tag)
 Wire a host's GPU-surface lifecycle to a scripted UI session, for every format.