Sign in
dawn
/
dawn
/
cdfb6e78a88fb970a83c52edd1db060b65a56e44
/
.
/
test
/
tint
/
ptr_sugar
/
vector_swizzle.wgsl
blob: 5f349defc790a1b7ba4a3e85b124d5f0aa176045 [
file
] [
log
] [
blame
]
@group
(
0
)
@binding
(
0
)
var
<
storage
,
read_write
>
buffer
:
vec4i
;
fn deref
()
{
let
p
=
&
buffer
;
buffer
=
(*
p
).
wzyx
;
}
fn no_deref
()
{
let
p
=
&
buffer
;
buffer
=
p
.
wzyx
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
deref
();
no_deref
();
}