Skip to content

Commit

Permalink
Forbid pointer-to-workgroup param on user functions, when store type …
Browse files Browse the repository at this point in the history
…contains an atomic (gpuweb#3110)

Fixes: gpuweb#3067
  • Loading branch information
dneto0 authored Jun 29, 2022
1 parent dc47e66 commit d3f7f62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgsl/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -7541,6 +7541,8 @@ Note: The [=attribute/const=] attribute cannot be applied to user-declared funct
* [=address spaces/function=]
* [=address spaces/private=]
* [=address spaces/workgroup=]
* In this case, the pointer's [=store type=] [=shader-creation error|must not=] not be an [=atomic type=],
nor contain an atomic type at any [=nesting depth=].
* For [=built-in functions=], a parameter of pointer type [=shader-creation error|must=] be in one of
the following address spaces:
* [=address spaces/function=]
Expand Down

0 comments on commit d3f7f62

Please sign in to comment.