From d3f7f62c5c12cb41bb668a800e65c65fbeecaf93 Mon Sep 17 00:00:00 2001 From: David Neto Date: Wed, 29 Jun 2022 12:01:32 -0700 Subject: [PATCH] Forbid pointer-to-workgroup param on user functions, when store type contains an atomic (#3110) Fixes: #3067 --- wgsl/index.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wgsl/index.bs b/wgsl/index.bs index 751945d68f..6aa2c3452b 100644 --- a/wgsl/index.bs +++ b/wgsl/index.bs @@ -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=]