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