Sign in
dawn
/
dawn
/
2c4c3a10f47c7be432bcd4e00661be340fb226bb
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
function
/
array_in_struct.wgsl
blob: 6e2cff6520c1ac30e6165abd9ab7b8fc8c803e27 [
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
);
}