Sign in
dawn
/
dawn
/
63adfb2508dc9f3ed27296a0efdd74545b1bded3
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
workgroup
/
struct_in_array.wgsl
blob: 638ca03a16bafe1349661cabc6faee4395614c9d [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
struct
str
{
i
:
i32
,
};
var
<workgroup>
S
:
array
<
str
,
4
>;
fn func
(
pointer
:
ptr
<
workgroup
,
str
>)
->
str
{
return
*
pointer
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
let
r
=
func
(&
S
[
2
]);
}