v135 · webgpu
Shader Variable Packer
Add the variables you want to pass from vertex to fragment shader. The packer assigns each to a vec4 slot, counts the maxInterStageShaderVariables slots consumed, and generates the corresponding WGSL struct — so you can see the exact limit Chrome 135 checks.
checking WebGPU…
checking maxInterStageShaderVariables…
WebGPU tracks two limits:
maxInterStageShaderComponents (removed in Chrome 135) and maxInterStageShaderVariables (kept). The key insight: variables are vec4s, so components = variables × 4. Removing the components limit simplifies the API without losing expressiveness — only the variable count matters.
Shader output variables
Slot usage
Variables: 0 / — (loading device limit…)
Components equivalent: 0 (removed limit was maxInterStageShaderComponents)
Vec4 slot assignments
Generated WGSL struct
Add variables above to generate WGSL.