Sign in
dawn
/
dawn
/
74da3bc61d4606f2f223b2e2ce70423d5dd4efdd
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
private
/
array_in_struct.wgsl
blob: 8ce352449d468c169265e6475644df9efc99a2be [
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
);
}