analyzeBranching
Analyzes unnecessary shader branching and returns AI optimization suggestions for a given effect, helping you reduce costly divergent code paths in WebGL2 or WebGPU shaders.
Instructions
Analyze unnecessary shader branching with AI. Return optimization suggestions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"effect_id": "<effect_id>"
},
"name": "analyzeBranching"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backend | No | Backend that selects the shader language to analyze | webgl2 |
| effect_id | Yes | Effect ID (e.g., "synth/noise") |