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