testUniformResponsiveness
Tests whether each shader effect uniform changes the rendered output by comparing frames after setting alternate values, revealing controls that fail to respond.
Instructions
For each uniform control the tool finds two values that differ from the value the loaded program set: a range control's farther 25%/75% point and its 38.2% point, a dropdown's other choices, a boolean's opposite, or a vector moved a quarter of its range. It first opens the control's ui.enabledBy gate by setting the gate params (enabled_with). It captures the output twice (the second against the first measures how much the output changes between renders on its own), then sets each value and compares at paused t=0 and t=0.37. A control responds when the luma, a per-channel mean or the per-pixel mean (64x64 grid) changes by more than 0.002, or more than 0.05% of all pixels change by more than 16/255 (strong_fraction); when the output changes on its own, only well beyond that change. A control that does not respond is retried with one other control moved (context). Results per uniform: pass, fail, error, gated (a compile-time define or a gate that cannot be opened), unstable (no verdict: the output changes between renders by more than the thresholds), or untested (no other value can be set at run time). Status is ok when at least one control was measured and every measured control responded; error when one could not be measured or got no verdict (unstable); otherwise fail when one did not respond; skipped when no control could be set at run time (every control gated or untested). Async overlays are awaited, up to the session timeout (settle_timed_out).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "testUniformResponsiveness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backend | No | Rendering backend | webgl2 |
| effects | No | Comma-separated effect IDs | |
| effect_id | No | One effect ID, such as "synth/noise" |