shader.measure
Since next
Static cost, caps met (desktop, web, hd: uncalibrated), derived metadata (usesDerivatives, usesScreenInputs), what HD would downgrade, hd (passes, pipelines, ray-hit handling, codes), variants, pre-warm estimate.
ms per screen: null without a GPU timer.
| Title | Measure a shader |
| Mode | disk |
| Token cost | about 113 tokens (listed only when its toolset is enabled) |
| Toolset | shaders |
Arguments
| Argument | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
path | string | yes | A *.shader.wgsl file, such as shaders/glow.shader.wgsl. |
Example
An MCP tools/call with the required arguments (placeholders in angle brackets).
{
"name": "shader.measure",
"arguments": {
"path": "<path>"
}
}