Sign in
dawn
/
dawn
/
68439bfe9ab50197f3727dfc0bdd878be609eefc
/
.
/
test
/
tint
/
types
/
module_scope_vars_pointers.wgsl
blob: 0e27d6c970a21dae680aecbcf1070996516f9a4d [
file
] [
log
] [
blame
]
var
<private>
p
:
f32
;
var
<workgroup>
w
:
f32
;
@compute
@workgroup_size
(
1
)
fn main
()
{
let
p_ptr
:
ptr
<
private
,
f32
>
=
&
p
;
let
w_ptr
:
ptr
<
workgroup
,
f32
>
=
&
w
;
let
x
:
f32
=
*
p_ptr
+
*
w_ptr
;
*
p_ptr
=
x
;
}