Sign in
dawn
/
dawn
/
74080eca21c1c8089560ce5e282bb37ebd52447d
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
private
/
array_in_struct.wgsl.expected.wgsl
blob: deda9b4936028c2ec79cda79f31c5eaf9eaf13ab [
file
] [
log
] [
blame
]
struct
str
{
arr
:
array
<
i32
,
4
>,
}
fn func
(
pointer
:
ptr
<
private
,
array
<
i32
,
4
>>)
->
array
<
i32
,
4
>
{
return
*(
pointer
);
}
var
<private>
P
:
str
;
@compute
@workgroup_size
(
1
)
fn main
()
{
let
r
=
func
(&(
P
.
arr
));
}