Skip to content

Commit

Permalink
Disallow taking the address of a handle (#1983)
Browse files Browse the repository at this point in the history
* Disallow taking the address of a handle

Fixes #1832

* simplify text
  • Loading branch information
alan-baker committed Jul 27, 2021
1 parent 5a4766c commit f5aeea2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wgsl/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4511,6 +4511,9 @@ The <dfn noexport>address-of</dfn> operator converts a reference to its correspo
If |r| is an [=invalid memory reference=], then the resulting
pointer is also an invalid memory reference.

It is a [=shader-creation error=] if |SC| is the [=storage
classes/handle=] storage class.

</table>

## Indirection Expression ## {#indirection-expr}
Expand Down

0 comments on commit f5aeea2

Please sign in to comment.