Skip to content

Restrictions on pointers passed to functions are not documented where they should be #5032

@jimblandy

Description

@jimblandy

WGSL permits formal parameters to user-defined functions to be pointers only if the address space is private or function. This restriction is not mentioned in the section "Restrictions on Functions", but it should be.

I hope I didn't just miss it, but I believe the only place in the spec that explains this restriction is the description of the unrestricted_pointer_parameters language extension. It seems odd to me to document a restriction only when explaining something that can remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions