Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
recipes.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <optional>
6#include <string>
7#include <vector>
8
10
14 std::vector<std::uint8_t> bytes;
15};
16
18struct RunOptions {
22 std::optional<std::string> gpu_evidence_id;
23};
24
26struct RecipeRun {
28 std::vector<ArtifactPayload> payloads;
29};
30
32bool validate(const RecipeRun& run, std::string* error = nullptr);
33
38
44
51 const RunOptions& options = {},
52 std::optional<std::string> threejs_runtime_root = std::nullopt);
53
54} // namespace pulp::tooling::gpu_probe
Bounded recipe definitions, owned evidence, and native GPU probe runs.
Definition dpr_measurement.hpp:10
RecipeRun run_threejs_multi_pass_recipe(const RunOptions &options={}, std::optional< std::string > threejs_runtime_root=std::nullopt)
Run the blocking deterministic multi-pass recipe through a Three.js runtime.
RecipeRun run_gpu_compute_magnitude_recipe(const RunOptions &options={})
Run the blocking deterministic GPU magnitude recipe and CPU oracle.
RecipeRun run_gpu_audio_stft_recipe(const RunOptions &options={})
Run one blocking GPU STFT frame and its CPU oracle.
bool validate(const ProbeResult &result, std::string *error=nullptr)
Validate bounds, recipe identity, ordered pass aggregation, and artifacts.
RecipeRun run_renderer3d_recipe(const RunOptions &options={})
Run the blocking deterministic Renderer3D/readback recipe.
Owning artifact descriptor plus its exact payload bytes.
Definition recipes.hpp:12
Artifact artifact
Definition recipes.hpp:13
std::vector< std::uint8_t > bytes
Definition recipes.hpp:14
Bounded artifact descriptor; payload bytes are owned by ArtifactPayload.
Definition probe_result.hpp:149
Closed v1 metadata and verdict for one recipe execution.
Definition probe_result.hpp:158
Owning recipe result and byte-exact artifact payloads.
Definition recipes.hpp:26
std::vector< ArtifactPayload > payloads
Definition recipes.hpp:28
ProbeResult result
Definition recipes.hpp:27
Options that bind one native recipe execution and its negative control.
Definition recipes.hpp:18
bool apply_negative_mutation
Definition recipes.hpp:19
std::optional< std::string > gpu_evidence_id
Optional trace-correlation identity.
Definition recipes.hpp:22