Sitelet https://github.com/gpuweb/gpuweb/issues/1959
Skip to content

[wgsl] Limit number of function parameters to 255 #1959

Description

@ben-clayton

This is a bit of a uncommon case, but was found by our fuzzers:

Unexpected spirv-val error:
1:1: OpTypeFunction may not take more than 255 arguments. OpTypeFunction <id> '5[%5]' has 256 arguments.

Sure enough, the SPIR-V spec requires the number of parameters and arguments to be ≤ 255.

I guess we need to bubble up this restriction to WGSL.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    copyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions