Sign in
dawn
/
dawn
/
74da3bc61d4606f2f223b2e2ce70423d5dd4efdd
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
function
/
struct_in_array.wgsl
blob: 7c8778746e98c6ba27c20844df9149ce0b661c92 [
file
] [
log
] [
blame
]
struct
str
{
i
:
i32
,
};
fn func
(
pointer
:
ptr
<
function
,
str
>)
->
str
{
return
*
pointer
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
var
F
:
array
<
str
,
4
>;
let
r
=
func
(&
F
[
2
]);
}